Reputation: 133
Just to introduce what I need to do is the following:
So far I have the OLE DB source reading in the result set returned from the stored procedure, then the OLE DB Command drops all records in the destination table and lastly the OLE DB Destination table is populated with the records output from the OLE DB Source.
WHAT I NEED HELP WITH:
Can someone please tell me how to do the following: - Check every record in the OLE DB Source output to see if it exists in the destination table. - If a record doesn't exist, input data into a seperate table.
It would be much appreciated if someone could help!
Thanks, Cian
Upvotes: 0
Views: 7528
Reputation: 3008
You can use the Lookup Task for this - pass the rows from the OLEDB source into this, and match on the keys for the rows. Send the non-matching rows to the other table.
Sounds like you want to use a Multicast before you do this though - one path to do the drop & re-insert and the other path to do what I said above (send a value to the other table).
Upvotes: 1