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

SSIS Package Level Transaction

$
0
0
I need to have Transaction at package level. I have Nested Sequence Containers in my package and Want my package to rollback if any of the task fails in my Control flow. What is the best solution to accompolish this. I know how to set Transaction "Supported"/"Required" etc but Can anyone help me to figure out what could be the best settings especially when i have Nested Sequence Containers and want my Package to Run as ONE transaction

Saadat


Can SSIS import data from multiple files to multiple tables in loop?

$
0
0

I have multiple files that are downloaded from ftp site each week the file names are always the same. I then have to import the data into tables in database, is it possible to automate this using SSIS. 

If it is possible how would I set this up?


Issue pulling informix BLOB datatype to SQL Server 2008r2

$
0
0

Hi All,

I am pulling data from informix data to sql server using ssis but having issues with data types likeBLOB. There is an equivalent data type in sql server for BLOB i.e varbinary. SSIS gives me an error with only these columns other than this everything elseis fine.

I have solved empty string issue with this help.

http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/61241fc8-9451-4abd-915d-e704f10d7a57

Please let me know if you have any workaround to get these fields

Thanks

Pawan.

for each loop multiple files

$
0
0

I have 10,000 Files and i want to loop them and move to destination table using data flow task.

for each file loop helps me to loop one by one only. i want to run them in parallell so that the time taken is less for processing.

also i need to capture no of records in each file


ShanmugaRaj

SSIS Web Service

$
0
0

I am totally new to SSIS so can you tell what is the most straight forward to call a Service?

Use Web Service Task or Script task and do you have any basic examples for me to go by?

SSIS Script Component

$
0
0

I am using this code in Script Component but any ideas why it's not recognizing the EndOfRowSet because I am displaying a MsgBox and it never hits it ??

 

while (buffer.NextRow())// Process each row

{

}

if (buffer.EndOfRowset)

{

// Optionally, do something after all rows have been processed.

}

Hresult: 0x80004005 Description: "Cannot insert duplicate key row

$
0
0

Good Morning All,

I have a package and it loads data from flat files into the SQL SERVER table. When i execute the package i'm getting the following error:

[Insert AgeOfAciveCaseLoadDetail [194]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005  Description: "The statement has been terminated.".

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005  Description: "Cannot insert duplicate key row in object 'dbo.AgeOfActiveDetail' with unique index 'idx_AgeOfActiveDetail'. The duplicate key value is (Oct 10 2011 12:00AM, 49, 15, 05175048, 175048).".

I tried using the following link to resolve the problem but no luck. (http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/4a50e5e4-be22-47f9-a32b-30285e30d975)

In the package i have a conditional split operator named as validation, can any one please tell how to validate for a duplicate key error. Please any help or advice is greatly appreciated,

Thanks


SV

DTEXEC command ignores /CONN arguments

$
0
0

I am running SQL Server 2008 and I am importing a csv file into a sql table - very simple. The package works fine in design mode. It also runs fine from the command line, but it ignores my arguments and just runs the design mode parameters. The only differences are

Design mode: Uses MyServer-4, and the csv file is in C:\temp instead of C:\temp2.

At the command line, it is supposed to use MyServer-5 and the file in C:\temp2 instead of C:\temp

The connection managers use a variable as an expression and run like their supposed to.

My command line is below and it is all on one ling line in a dos batch file:

dtexec /f "C:\Temp2\MyPackage.dtsx" /Decrypt MyPassword 
/CONN cm_sql_MyDB;"Data Source=MyServer-5;User ID=MyUser;Password=MyDBPassword;Initial Catalog=MyDB;Provider=SQLNCLI10.1;" 
/CONN cm_sql_MyAdminDB;"Data Source=MyServer-5;User ID=MyUser;Password=MyPassword;Initial Catalog=MyAdminDB;Provider=SQLNCLI10.1;" 
/CONN ffs_raw_IMPORT_CSV;"C:\Temp2\tblIMPORT_MyCsvFile.csv"

After running this command line, the table in MyServer-4 is filled with the contents of the csv file in C:\temp. I have a modified_on trigger in the destination table to prove it. I would appreciate any suggestions. Thank you.



script task + design script not opening VSA Editor

$
0
0

Hi,

My workstation is windows XP professional. We are using Visual Studio 2005, SQL Server 2005 and SSIS 2005 packages. Usually to work on SSIS package I go to

Start -> Programs -> Microsoft SQL Server 2005 -> SQL Server Business Intelligence Studio.

By clicking on it, it opens Visual studio IDE and then I create new or open existing SSIS package.

I used script task in many packages. I haven't opened them or worked on them in last couple of months. Now when I open script task - click on script - click on 'Design Script',

Nothing is happening. No error and VSA editor is not opening.

I tried few things:

  1. Closed and started BIDS - Not working
  2. Rebooted work station and tried again - Not worked
  3. Opened new package. Added script task and tried clicking on 'Design Script' - Nothing happend.
  4. Opened existing package - tried same - Not worked.
  5. Deleted script task from existing package and added and tried to click on 'Design Script' - not worked.

Some forums suggest to install 'Microsoft SQL Server 2005 Service Pack 3'. For work stations, we use only sql server client. So, how can we install SP3 on my machine.

Are there any other options or fixes or trouble shooting ideas.

I appreciate your response.

Thanks,

Spunny

After upgrade into SQL Server 2012, using Data Tools Edit Script does not work?

$
0
0

Hi,

After upgrading to SQL Server 2012, when I open SSIS packages with Microsoft Data Tools by clicking on Edit Script in Script Transformation Editor, it loads new microsoft Visual Studio (As admin) with a blank screen.  Any thoughts?

thanks

SSIS Package executes for hours for import :

$
0
0

Hi All ,

I am looking for the best way to optimize my ssis package . Any help is appreciated .

My package basically is an simple import/export from Paradox Database (DB Files )  to SQL Server.

I have installed Borland development engine  and created microsoft ole db data source driver for the paradox db as per the below links.

http://blogchenceto.blogspot.com/2010/12/importing-paradox-db-files-into-sql.html
 
http://download.chip.eu/en/Borland-Database-Engine-5.1_73694.html

There are few(5)  tables in paradox database ,which has primary and secondary index files and these are taking minimum 3-4 hours to load .

In my package ,I am using OleDb source and oledb destination for loading. No transformations are involved . I am just retrieving the count and loading into another table .

Please suggest to optimize my package.

Thanks in advance . 

JR

Getting 'unknown' with analysis service processing task

$
0
0

Hi,

I have a problem with a cube that is killing me!

When I process a cube manually everything looks great but when the cube is processed by the scheduled Analysis Service Processing Task, one of the dimensions has only 'unknown'.

I'm out of ideas, any suggestion will really help!

Thanks! :)

Creating Directory using My.Computer.FileSystem.CreateDirectory using Mapped Drive(SharePoint URL) in Script Task in SSIS 2008 having Issues

$
0
0

have uses Script Task in SSIS 2008

I have mapped SharePoint URL to a drive in Script using credentials.

then using My.Computer.FileSystem.CreateDirectory to create required folder.

Now credentials have changed , i have updated new password.

Now when i use My.Computer.FileSystem.CreateDirectory  to create required folder 'M:\FY2013' it throws an error. The Folder already resides in share point. But this piece of code should Not throw exceptions as per Microsoft.

Error: 0x1 at Script Task: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'M:\FY2013'.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity)

at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)

at Microsoft.VisualBasic.FileIO.FileSystem.CreateDirectory(String directory)

at ST_8f18a01ce79b4345af453520734c1201.vbproj.ScriptMain.CheckandCreateDirectory(String BaseDirectory)

at ST_8f18a01ce79b4345af453520734c1201.vbproj.ScriptMain.Main()

--- End of inner exception stack trace ---

at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)

at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()

Task failed: Script Task


sureshk

Execute SQL Task Error

$
0
0

Hi All,

I am executing a stored procedure from the Execute SQL Task, but I am getting the error below. I thought there might be some problem with stored procedure and executed it directly in Management Studio, it runs perfectly there. I tried everything possible, used ADO.Net and OLEDB connections, but whatever I use I still get the same error. Could someone help me how to overcome this.

[Execute SQL Task] Error: Executing the query "EXEC dbo.sp_DataLoad_ETL 'stgPRDWkA', ?" failed with the following error: "The statement has been terminated.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

Thanks
Vineesh


vineesh1701

Incremental Load using SSIS package

$
0
0

Hi,

I need perform Incremental Load form OLTP application using SSIS package. There are different Source tables with ID (may be Primary Key), CreatedDate and ModifiedDate along with other columns. 

The requirement is to load the destination tables with new records and update the existing records (if any updated records are available)

Please suggest me best approach to implement this. 


Kapil Kaushish


Execute SQL Task full result set

$
0
0

I have simple package that has 3 execute sql tasks in serial. The first execute sql task gives full result set that is saved to variable. Now I want to use this full result in a query that is in 2 nd execute sql task. For example 2 nd execute sql task do something like select * from variable (full result set). How can I accomplish this in SSIS?

Thanks,


hsbal

Login timeout expired" in ssis pack

$
0
0

Hi,

i am geting  below error when i am exce ssis package... please help me

SABMLR_MDM_Dimensions_Load Connection manager "MDM"     Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.  An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description: "Login timeout expired".  An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description: "Unable to complete login process due to delay in login response".  An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description: "TCP Provider: Timeout error [258]. ".  End Error  Error: 2012-12-19 02:32:09.54     Code: 0xC0202009     Source: SABMLR_MDM_Dimensions_Load Connection manager "MDM"     Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.  An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description: "Login timeout expired".  An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description: "Unable to complete login process due to delay in login response".  An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description:"TCP Provider: Timeout error [258]. ".  End Error  Error: 2012-12-19 02:32:16.25     Code: 0xC020801C     Source: DFT_Load_Supplier_Branch OLE_SRC_SupplierBranch [70]     Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "MDM" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.  End Error  Error: 2012-12-19 02:32:19.16     Code: 0xC020801C     Source: DFT_Load_Location OLE_SRC_Location [167]     Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "MDM" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.  End Error  Error: 2012-12-19 02:32:22.52     Code: 0xC004701A     Source: DFT_Load_Supplier_Branch SSIS.Pipeline     Description: component "OLE_SRC_SupplierBranch" (70) failed the pre-execute phase and returned error code 0xC020801C.  End Error  Error: 2012-12-19 02:32:25.34     Code: 0xC004701A     Source: DFT_Load_Location SSIS.Pipeline     Description: component "OLE_SRC_Location" (167) failed the pre-execute phase and returned error code 0xC020801C.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  2:30:00 AM  Finished: 2:32:25 AM  Elapsed:  144.972 seconds.  The package execution failed.  The step failed.


regards venkat



XML Source from website

Establishing Secure FTP Connection in SSIS

$
0
0

I want to upload files to secure FTP site using SSIS 2008.Please help me if you have any suggestions.I dont want to use any third part software.So is it possible to establish SFTP using script task by writing some VB or C# code?

child package not running since sql server restart

$
0
0

Hello,

Our ssis package is not running when executed from the sql agent.  The job runs under a credential which is linked to an account that has full permissions on the directory.  The child package is the package that fails to load with this error message:

Description: Error 0x80070005 while loading package file "L:\Import.dtsx". Access is denied.

This only started happening after out sql server instance was restarted.  Any advice would be greatly appreciated.

Thanks

Viewing all 24688 articles
Browse latest View live




Latest Images