How to update the records usnig CozyRoc's Table Difference component?
-
Tuesday, February 28, 2012 12:29 PM
Hi Friends,
I am using the table difference component to update some records between two tables.But when it finds some records, which is existing in both source and destination tables, it is supposed to be updated if there is any change. but it tries to insert as a new record instead of updating. Where am i doing mistake? what is the condition i should give to update the existing records?
Any suggestion would be really appreciated...
All Replies
-
Tuesday, February 28, 2012 1:08 PMModerator
You could contact the CozyRoc's developers:
http://www.cozyroc.com/contact
http://social.msdn.microsoft.com/profile/cozyroc/?ws=usercard-miniPlease mark the post as answered if it answers your question | My SSIS Blog: http://microsoft-ssis.blogspot.com
-
Wednesday, February 29, 2012 12:17 AM
Hi Prakash,
Make sure both the old and new input use the same sort order. Otherwise the component will not be able to do proper matching.
SSIS Tasks Components Scripts Services | http://www.cozyroc.com/

- Proposed As Answer by Koen VerbeeckMicrosoft Community Contributor Wednesday, February 29, 2012 1:12 PM
-
Wednesday, February 29, 2012 9:02 AM
Hi Prakash,
Make sure both the old and new input use the same sort order. Otherwise the component will not be able to do proper matching.
SSIS Tasks Components Scripts Services | http://www.cozyroc.com/

Yeah...Do we need to stick only with OLEDB command component for updating any records...? it will not generate the update command itself right..? like SCD?
Apart from that, i feel this table difference is a very good component..its performance is 200% better than Microsoft SCD...
Thanks CozyRoc..
-
Wednesday, February 29, 2012 11:46 AM
Hi Prakash,
OLEDB Destination task is used whenever the filtered rows are to be stored in new Data table and OLEDB Command task can be used whenever same data source is to be updated using suitable query.
Rajkumar
-
Wednesday, February 29, 2012 12:51 PM
Prakash,
For the best performance I would recommend you setup a staging table where you insert the updated rows using the fast OLE DB Destination component. After your data flow finishes executing, transfer the updated rows from the staging table into the destination table using SQL command.
SSIS Tasks Components Scripts Services | http://www.cozyroc.com/

- Proposed As Answer by prakash999 Tuesday, July 03, 2012 12:32 AM
-
Thursday, March 01, 2012 8:07 AMThanks Raj
-
Thursday, March 01, 2012 8:07 AM
Prakash,
For the best performance I would recommend you setup a staging table where you insert the updated rows using the fast OLE DB Destination component. After your data flow finishes executing, transfer the updated rows from the staging table into the destination table using SQL command.
SSIS Tasks Components Scripts Services | http://www.cozyroc.com/

Ok Buddy, let me try with that..- Marked As Answer by Prakash.R Thursday, March 01, 2012 8:08 AM

