Author Archives: jwelch

Changing Destination Tables With the OLE DB Destination

The OLE DB Destination supports using a variable to get the name of the target table. This allows you to switch the destination table dynamically, but there is a caveat. The columns in each table that you will use must … Continue reading

Posted in Uncategorized | Comments Off on Changing Destination Tables With the OLE DB Destination

Running Password Protected Packages

A recent post on the forums was asking about running packages programmatically. The poster’s package was password protected, and when running the package, they were receiving a message that one of the connection managers was failing to connect. The code … Continue reading

Posted in Uncategorized | Comments Off on Running Password Protected Packages

SSIS Performance Webcast for the Charlotte SQL Server User Group

I’ll be doing a web cast for the Charlotte SQL Server User Group, our local PASS chapter, on SSIS Performance Tuning on Nov. 28, 2007 at 12:00 EST. From the abstract: “This presentation will cover the various aspects of performance … Continue reading

Posted in Uncategorized | Comments Off on SSIS Performance Webcast for the Charlotte SQL Server User Group

Dealing with Unicode and ASCII Text Files

A recent post on the MSDN forums brought up an interesting problem. The poster was attempting to process a folder of files, all of which had the same format, but some were encoded as ASCII (ANSI, DT_STR, or varchar, if … Continue reading

Posted in Uncategorized | Comments Off on Dealing with Unicode and ASCII Text Files

Checking for the Existence of a File

The File System Task in SSIS doesn’t support checking to see if a file exists. You can work around this easily with a script task. Create a new script task and add a Imports statement referencing the System.IO namespace to … Continue reading

Posted in Uncategorized | Comments Off on Checking for the Existence of a File

Scanning a Package For Specific Tasks

I recently had a need to scan through an SSIS package to find all instances of data flow tasks within the package. This is to support a future enhancement in BIDSHelper. However, I ended up making the code a little … Continue reading

Posted in Uncategorized | Comments Off on Scanning a Package For Specific Tasks

Address Columns Generically In a Script Component

When writing script components in SSIS, it’s often useful to be able to process the columns without knowing exactly what they are. For example, you may want to loop through all the columns to check for a conditional, like NULL … Continue reading

Posted in Uncategorized | Comments Off on Address Columns Generically In a Script Component

Preparing A List of IDs for an IN Condition

There’s been a few questions on the MSDN Forums recently about using a list of keys in an IN condition in a WHERE clause. There are a few scenarios were this can be a bit tricky in SSIS, particularly if … Continue reading

Posted in Uncategorized | Comments Off on Preparing A List of IDs for an IN Condition

Changes Coming for SSIS 2008

At the PASS Summit this week, I heard a few interesting bits about SSIS 2008 that should be in the next CTP. One, ADO.NET will be fully supported, with a ADO.NET Data Source (renamed from the Data Reader Data Source) … Continue reading

Posted in Uncategorized | Comments Off on Changes Coming for SSIS 2008

Dynamically Pivoting Rows to Columns

Previously, I posted about dynamically un-pivoting columns to rows. In this post, we’ll look at the reverse scenario. Suppose that you have a list of sales orders, in this format: Sales Order Number Product SO-001 Hammer SO-001 Table Saw SO-001 … Continue reading

Posted in Uncategorized | Comments Off on Dynamically Pivoting Rows to Columns