SSIS 2012 – Insert new rows, ignore existing rows

Between your source and destination component, add a Lookup Component.

Configure the Lookup to Redirect to No Match Output for unmatched rows.

In your lookup source, write a query like SELECT T.PK1, T.PK2 FROM dbo.MyTable T where you only pull back the primary keys and then compare you input data to the target table’s.

What comes out of the no match output will be rows that do not exists in the destination.

Sample screenshots for a 2008 problem

Importing a large data file with sorts and joins in SSIS

Leave a Comment