What would be the steps to create a SSIS job to append records from an ODBC table to a SQL table, adding only the records from the source that do not already exist in the destination?
I have another post on this subject, with a good suggestion for the approach, but I need some more detailed instructions for implementing it:
Have you considered to use a Lookup task in your data flow to check if the row already exists in the destination table and then use the error output (no matches) for inserting only non existing rows? Notice that the error output of the lookup task needs to be set as 'redirect rows' in order to get this behavior
All details here:
Checking if a row exists and if it does, has it changed
(http://blogs.conchango.com/jamiethomson/archive/2006/09/12/SSIS_3A00_-Checking-if-a-row-exists-and-if-it-does_2C00_-has-it-changed.aspx)
(and in the various links from it)
-Jamie
|||This is excellent. Just what I was looking for, and a little bit more...
Many thanks
|||Jamie's answer did the trick
All details here:
Checking if a row exists and if it does, has it changed
(http://blogs.conchango.com/jamiethomson/archive/2006/09/12/SSIS_3A00_-Checking-if-a-row-exists-and-if-it-does_2C00_-has-it-changed.aspx)
(and in the various links from it)
-Jamie
Edit: Can't mark this issue solved...
No comments:
Post a Comment