ssis

Could not load type Error when creating a new Integration Services Package using SQL Server Business Intelligence Development Studio.

Could not load type 'Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackageSigning100' from assembly 'Microsoft.SqlServer.DTSRuntimeWrap, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' ...

SLOW RUNNING PACKAGES

HI Everyone, I have SSIS packages which runs on nightly basis to move data from AS400 to SQL Server 2005. From last couple of months my packages consuming more time to complete as a scheduled job. If I run same packages manually they are completing normally . In all my ssis packages i am truncating the data in sql server then Bulk inser...

Cumulative Row Count In For Each

Hi, I have a row count inside a foreach. I want the variable to have the total number of records that passed through in all iterations of the for each - cumulative sum. However, it seems that only the last iteration holds. Is there a way to do this? Thanks ...

How to delete an SSIS package that has been deployed to the file system

Is it as simple as deleting the file, or do I have to do anything to de-register it before I delete it. Does the deployment process do anything more than copy it to the "Packages" folder. ...

SSIS 2005 and .NET 4 Framework

Is it possible to access .NET 4 Framework references using BIDS 2005? Specifically to trigger a WorkFlow. I have a dll built in VS2010 using the .NET 4.0 and would like to access the methods/fields in it. in VS2010 I would be able to Import System.Activities and use WorkFlowInvoker.Invoke I need to be able to do this in BIDS 2005 usi...

How can I prevent BIDS from automatically checking out SSIS packages?

I have Visual Studio 2005 (BIDS) set to "Check out automatically" when a file is edited which works well for most file types. When I access a Data Flow within an SSIS package though, a check out is triggered without me making any changes. When I compare the files, there does not appear to have been any changes made in the background eit...

SSIS (DT_Decimal) to (DT_Str) removes trailing zeros for decimals

Hi there, When converting from DT_Decimal to DT_Str, the derived column stips off decimals from my result. ex.: -0.1250 returns -0.125 -2.0000 returns -2 Is there a way to keep the zeros to have a final string with always four decimals ? Here is my derived column for the decimal value calculation: (DT_DECIMAL,4)ROUND((DT_Decimal,4)[...

SSIS Common rownumber for both outputs on a flatfile source

I have a small problem (I assume...) I'm loading a flatfile (csv) and I want to add a rownumber to the dataflow. Using the RowNumber transforation works good for both output paths (source and error) individually. But what if you want to use the same rownumber in both paths to be able to track where (in the file) an error occured. I have ...

Display Exception Message in SSIS Script Task

Here when task is failed in Script Task, I always get a result as "Error: The script returned a failure result" in the Progress/Execution Result Tab, which I am unable to identify what error had occurred. Inside the script task, I have given the code for failed result, as shown : Dts.TaskResult = (int)ScriptResults.Failure; How will I...

How to create a dynamic IN query in SSIS 2008?

I have a variable @csv which hold a comma separated value such as: -a -a,b -a,b,c I need to pass it in a query in my OLE DB source in a data flow to create a query such as: SELECT COUNT(1) FROM table WHERE col1 IN @csv So if @csv="a,b" then internally it should resolve into SELECT COUNT(1) FROM table WHERE col1 IN 'a','b' How can t...

Exchange 2003 as a SSIS data source

Hi all, I am new to stackoverflow, and this is my first question: I would like to create a SSIS task on SQL 2005 server that queries a specific email account on an Exchange 2003 server, and creates a report. The report currently contains the amount of emails received, average time of reply, and emails with reply time that have gone ov...

SSIS issue when communicating with Oracle (T-SQL vs. PL/SQL?)

I have an SSIS package set up to pull data from an Oracle database into SQL Server. I recently ran into an issue that was preventing this data pull. The following code works fine in Oracle SQL Developer (it returns rows, as it should): SELECT a.MyField , a.MyOtherField, a.FromDate FROM MyTable a WHERE a.FromDate BETWEEN CONCA...

import data using ssis?

trying to set up an import form live database to our development database. I trying to do this using SSIS, but the import is failing because of constraints. E.g. I have the following tables: * Customers * Products * OrderLines * Orders Importing Customers and Products is fine, because they do not depend on anything. But when importi...

Convert SQl 2008 SSIS dtsx package to SQl 2005 format

Anybody knows how, if at all, can I convert an SSIS package created in VS 2008, for SQl 2008, to be loaded in VS 2005, for SQl 2005? It is a simple file copy and looping package. No fancy stuff in it. ...

Execute SSIS Package based on a Flag bit.

Hi, How do I execute an SSIS Package based on a flag bit present in a table. What I understand is, we need to create a variable and then get it assigned with the value in the SQL Server Table. And then use the precedence constraints to control the flow. If my flag bit is "0" I will run it and make it 1 at the end, but if it "1" I sh...

SSIS: Curious: why is the last parameter in FireInformation method a ref bool?

I'm currently working on a SSIS package and after the 80th time using FireInformation inside a Script Task, I have to wonder: why would the method require you to pass in a ref boolean as its last parameter? The documentation doesn't state anything about how you should respond to the value once the method returns. Am I missing something h...

FTP Connection string using expression in SSIS

Hi, In my SSIS 2005 package, I need to give the FTP Connectionstring via an expression as I need to keep it configurable for the user from the dtsConfig file. At the moment I tried giving the following expression: Connectionstring = @[User::FTPServer] + "." + @[User::FTPUser] + "." + @[User::FTPPass] For this unique syntax, I took poi...

Continue flow on certain specific Error in SSIS

Hi, In SSIS 2005, I am using the FTP Task. I have a flow where when the package runs, it retrieves any files in a specific folder from FTP to a local folder. Remote folder path is set by variable such as /root/abc/*abc.txt The task works fine if there are files in that folder matching this criteria. If there are no files, the task fail...

SSIS Custom Task - How to Debug?

I'm writing a custom SSIS task. At the moment, each time I make a code change, I'm having to recompile and re-gac the containing assembly, restart my test SSIS package, delete and re-add the task from the tool box, then re-add the task and run the package. Does anyone know if there's a way of stepping through my custom ssis task code at...

Using Derived Column to create a date value in the format YYYY-MM-01 00:00:00.000 for each row

Im having a problem with derived columns in SSIS. When in SSMS i can set a column to have a default value using the following code: (dateadd(month,datediff(month,(0),getdate())-(1),(0))) and when data is entered into the database it will give it the timestamp of the previous month in the following format for example: 2010-09-01 00:...