Interview Preparation mode beta
Funny Facebook Status Funny Facebook Status
Enter your email address

Whiteboard techniques you would use to for CDC (Change Data Capture)?

Nice?Vote!
Demonstrate or whiteboard techniques you would use to for CDC (Change Data Capture)? Tell how you would write a package that loads data but first detects if the data already exists, exists but has changes, or is brand new data for a destination.
asked 1 year ago in SSIS Interview Questions and Answers by R (19,530 points)

1 Answer

Nice?Vote!
If for some reason you’ve avoided using a whiteboard to show your ideas to this point then make sure you start on this question! For small amounts of data I may use the "Slowly Changing Dimension".
More often than not the data is too large to use in such a slow transform. I prefer to do a lookup on the key of the target table and rows that don’t match are obviously new rows that can be inserted. If they do match it’s possible they are updates or duplicates.
Determine this by using a conditional split comparing rows from the target to incoming rows. Send updates to a staging table that can then be updated in an Execute SQL Task.
Explain that putting updates in a staging table instead of updating using the OLE DB Command is much better for performance because the Execute SQL Task performs a bulk operation.
answered 1 year ago by R (19,530 points)

Related questions