Quantcast
Channel: SQL Server Integration Services forum
Viewing all 24688 articles
Browse latest View live

ssis package not working

$
0
0

I am getting the below mentioned error message when running the SSIS package through the SQL Server agent.

Error: Opening a rowset for "Test_Table$" failed. Check that the object exists in the database.
Error: "Excel Source" failed validation and returned validation status "VS_ISBROKEN".

SQL Server 2014 Enterprise edition 64 bit

windows server 2012 r2 data center edition

Any suggestions.



Fail to start project

$
0
0

Hi, everyone

When I click start to run the project, there is a error message: 

Failed to start project

------------------------------
ADDITIONAL INFORMATION:

Method not found: 'Boolean Microsoft.SqlServer.Dts.Design.VisualStudio2012Utils.IsVisualStudio2012ProInstalled()'. (Microsoft.DataTransformationServices.VsIntegration)

I installed vs2012 iso and integrated, my version is 11.0.5058.0.

Any help appreciate.

Need help with extracting data between lines

$
0
0

Hi all,


I have the below data stored in ColumnA.

:32A:150101USD10,00
:50K:COMPANY ABC
XXXX XXXXX XXXXXXXXX
XXXXXX, XXXXX. - OUR USD A/C NO.
12345678 XXX XXXXXX.
:57A:XXXX
:59:/XXXXXXXXXXXXXXXXXXXXXXXXXXXX

I need to extract the data between :50K: and :57A:

I was able to extract the data using the following TSQL statement.

CASE WHEN PATINDEX('%:50K:%', ColumnA) > 0 THEN SUBSTRING(ColumnA,
						PATINDEX('%:50K:%', ColumnA) + 5, CHARINDEX(CHAR(10)
							, ColumnA, PATINDEX('%:57A:%', ColumnA)) - PATINDEX
						('%:50K:%', ColumnA) - 5) ELSE '' END AS Sample

The only problem it is including the below line with the data

57A:XXXX

That I don't need.

I only need the following data:

COMPANY ABC
XXXX XXXXX XXXXXXXXX
XXXXXX, XXXXX. - OUR USD A/C NO.
12345678 XXX XXXXXX.

I appreciate any help.

Thanks in advance.

OLEDB Destination in SSIS

$
0
0

Hi,

Can anyone tell which property in SSIS OLEDB destination which will improve performance of insertion in table which is having billions rows in table.

Date format in SSIS expression

$
0
0

Hi

Can anyone help me to produce date format in below given in manner with ssis expression

I want this output 

01-feb-16

in ssis expression

Kindly help me for this


Abhishek Parihar BI Consultant (Please mark the post as answered if it answers your question)



The number in the cell is formatted as Text or preceded by an apostrophe

$
0
0

I am having a excel destination to output some calculation. The whole job completes successfully but the format seems to be incorrect. The number fields are displayed as text with a leading apostrophe. As a result, i am not able to calculate the sum based on dragging of the cells on excel.

Is there any solution for this? 

Sample of the file now:

Any help will be greatly appreciated. Thank you!

Create variable from table to pass to SSIS package

$
0
0

I have a job that I want to run that passes a variable to an ssis package. The variable is a filename but the filename changes daily. I have an access front end that the user enters the filename into. The access program runs a stored procedure which writes the filename to a temp table and then runs the job. I would like the job to query that table for the filename and pass it along to my package variable.

I can get the job to work using a static filename. On the set values tab I used the property path \Package.Variables[User::FileName] and the value \\myserver\..\..\..\filename.txt. But I don't know how to replace that filename with the results of the query

Thanks in advance.

Scott

Expiry Date in SCD2

$
0
0

Hi,

I am trying to get the start date and end date column in scd2 as below

start date  as 23-02-2016(container start time) and end date as 01-01-9999(static) in place of null.

When loading the historical data this row of data should be treated as active and do the updates if any.

I know this how to achieve if enddate is null(standard procedure of SCD2) but i need the enddate as above and achieve same result.

Any suggestions would be helpful.

Thank you.

Kaish


Lava


Import data from csv to SQL server table

$
0
0

Hello,

I am trying to import data from a csv file to sql server table. I am importing based off a ssis package with data conversion. Here is ddl for the table:

CREATE TABLE [dbo].[Email](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[IP] [varchar](30) NULL,
	[Response] [varchar](900) NULL,
	[CreatedAt] [datetime] NULL,
	[FirstName] [nvarchar](60) NULL,
	[LastName] [nvarchar](60) NULL,
	[Title] [nvarchar](60) NULL,
	[ComapnyName] [nvarchar](60) NULL,
	[TypeOfBusiness] [nvarchar](60) NULL,
	[Address] [nvarchar](60) NULL,
	[City] [nvarchar](60) NULL,
	[State] [nvarchar](60) NULL,
	[ZipCode] [nvarchar](20) NULL,
	[EmailAddress] [nvarchar](60) NULL,
	[VerifyEmailAddress] [nvarchar](60) NULL,
	[PhoneNumber] [nvarchar](24) NULL,
	[PhoneExtension] [nvarchar](20) NULL,
	[PromotialCode] [nvarchar](60) NULL,
	[HowDidHear] [nvarchar](60) NULL,
	[NatureOfInquiry] [nvarchar](60) NULL,
	[AdditionalComments] [nvarchar](4000) NULL,
	[SCRM] [text] NULL,
	[Prefix] [nvarchar](30) NULL,
 CONSTRAINT [Email] PRIMARY KEY CLUSTERED
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[Email] ADD  CONSTRAINT [DF_Email_GetdateValue]  DEFAULT (getdate()) FOR [CreatedAt]
GO

In the conversion I used String[DT_STR] for IP column and used Unicode String[DT_WSTR] for the rest of the columns. The mapping was good and the insert was also successful but  it shows values in double quotes for the following fields

ComapnyName, Address,City,State and additionalcomments

but showing correctly for the remaining fields.

Am I doing something wrong in the conversion? 

Thanks a lot for the help in advance

ProvideX to SQL Server table

$
0
0

Hi Everyone! 

I have data in ProvideX and would want to put in a sql server table. Would it be possible with SSIS or with some any additional add-on's using SSIS?

Thanks.


- please mark correct answers



SSIS project deployment connection parameter problem

$
0
0

HI All,

I am facing some problem after I deploy my SSIS package via project deployment to SSIS 2014.

Every time I execute the package in SSISDB it is failing with below error , every time it tries to connect to different servers.

"

Execute SQL Task 1:Error: Failed to acquire connection "SourceServer". Connection may not be configured correctly or you may not have the right permissions on this connection.

"

However with same login I am able to execute the package successfully when running directly from VS.

My question is what sort of login permission Integration services catalog requires to connect to remote server ???

Any help would be very helpful :)

Thanks 



Thanks and regards, Rishabh K

Polling Mechanism In SSIS

$
0
0

i have one SSIS child Package which bulk load the data from a xml file to a table.

Please help me to how can i create a parent SSIS package 
which will tell my child package to execute once a file is arrived for bulk insert.

Please share your expertise....

I am using SQL SERVER 2008

Thanks a lot Techie...

SSIS 2012 : Package hangs intermittently during execution (OnPipelinePreComponentCall)

$
0
0

Hi,

I'm facing a strange problem wherein package execution hangs intermittently on state "OnPipelinePreComponentCall".

If the execution process is killed & restarted, it executes properly & completes successfully.

Package design is as below -

1. SSIS 2012 package in package deployment mode.

2. Pulls data from DB2 & loads it into SQL 2008 SP2 as is after appropriate data type conversions

3. Package contains grandparent (1)-parent (1)-child (21) relationship. 21 child packages have been divided into 4 sequence containers. Each container executes one after other (no parallel processing)

4. Package is executed using DtExec 32 bit utility.

Steps taken so far -

1. DelayValidation property is set to True for all data flow & connection managers

2. No trace on database, so its not waiting on database.

I'm still investigating the issue but kindly guide on areas to explore further to identify the root cause.

Run SSIS 2012 packages in SSIS 2014

$
0
0

Hello all,

I am trying to run a SSIS 2012 project in a SQL Server 2014.

Is this possible without converting the vs projects?

I am getting errors running the packages "The binary code for the script is not found". In fact I noticed that the script tasks reference several integration services v11 dlls.

Any thoughts?

Thanks for the help.

Regards,

André

SSIS Package not working properly when ran from Agent Job

$
0
0

I have a job that pulls files from a different server than the one the packages is executing on. The package runs fine when I execute it from the GUI and when I execute it from the catalog. When I set up an agent job, the package doesn't work properly. It doesn't die but the file loop comes back with a message:

The For each file enumerator is empty. The For each file enumerator did not find any files that matched the file pattern, or the specified directory was empty.

I'm looking right at the directory. The files are there. I'm not sure how to troubleshoot this. What is different about running from the job vs running from the catalog? 


Users execute ssis 2008 package

$
0
0

I am new to creating SSIS 2008 packages. What I want to do is to create a simple SSIS package and have the users 'run' the package when the needs arise. This cannot be a scheduled job since a user needs to determine when there is enough data to process.

Is there some tool SSIS tool? Is there some kind on excutable, dll, and/or app the user can click on  to run the package?

Thus can you tell me and/or point me to ways that I can setup a process for a user to execute the ssis package?


SSIS Import

$
0
0

I have 2 tables with the following columns and data.

Table1

ClientD                NoteID                AssessmentDate

5                             17                          01/01/2015

6                             20                          02/02/2015

7                             23                          02/01/2015

5                             44                          01/01/2015

7                             52                          02/01/2015

5                             54                          01/01/2015                        

Table2

ClientD                NoteID                AssessmentDate             ReviewDate

5                             54                          01/01/2015                        07/07/2015

6                             20                          02/02/2015                        02/02/2015

7                             52                          02/01/2015                        09/04/2015

Basically table2 imports records from table 1 but with the following conditions:-

If there is only one record for a ClientID in Table1 (ie ClientID 6), then Table2.ReviewDate = Table1.AssessmentDate.

If there are more than one record for a ClientID in Table1 (ie ClientID 5 and 7), then take the record with the highest NoteID and leave Table2.ReviewDate unchanged.

Note, once records are created in Table2, the ReviewDate  get updated by another process but this needs to remain the same if another record with the same ClientID is added to Table1.

Count number of files in directory using ForEach container

$
0
0

Hello,

I am trying to count the number of files in a folder beginning with a certain prefix in order to perform different tasks depending on 0, 1 or > 1 files.  I have a Foreach Loop Container in which I have specified the folder name and desired files. I declared a int32 package variable called Count and created a script task within the Foreach Loop Container.  In my script, I have

           

Dts.Variables["User::Count"].Value = (int)Dts.Variables["User::Count"].Value + 1;

          

MessageBox.Show(Dts.Variables["User::Count"].Value.ToString());

When I execute the container, I get Error: ForEach Variable Mapping number 1 to variable "User::Count" cannot be applied.

How can I fix this?

Dynamically column concatenation in ssis

$
0
0

Hi,

I need to dynamic concatenate columns in script task and then further need to populate that in error table.

So i have some constraints on Staging data , that if 1 column is NULL then move whole row to script task where it will concatenate all columns ito 1 and then put that concatenated string in error table column..

i am very weak in scriptiong..plzz help...


Mike


SSIS - Triple nested for each loop not taking values of second iteration

$
0
0

Hi all,

I have an SSIS package that needs to loop over 3 containers before executing a stored procedure.

The problem is that the result of the stored procedure contains NULL for the second result of my iteration.

When I debug the package before going into the stored procedure, all variables contain a value.

Is anyone familiar with this issue? THe configuration in the foreach loops seems correct

Loop over each stratum 

-Variable Stratums object

-Variable stratum integer

Loop over each regional office

-Variable RegionalOffices object

-Variable RegionalOffice string

The SQL - CALCULATE MIN/MAX/AVG contains all 4 varibales

-InvoiceDate, Stratum, RegionalOffice and Bonus year

Viewing all 24688 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>