Friday, February 03, 2012 11:54 PM
I will be writing a process that uses the CDC mechanism. Can I guarantee that all of the operations involved in the "transaction" will be available in the CDC generated table at one time, or is it possible to query the same LSN range and have different results returned (i.e. the CDC batch job has only processed half of the transaction log)?
I would imagine not, but my boss want's a definitive answer.
Friday, February 10, 2012 3:08 AMModerator
It depends on what logic used for the mechanism. In CDC procedure, all of the operations that are used to poplulate the database change tables are invoked in a sys.sp_MScdc_capture_job stored procedure at one time. However, some process are outside of the stored procedure execution, for example, the changes are recorded into the transaction log and read by the capture instance. So, you must first desgin a very clear login on how to process your change data capture and then can definitively answer your boss.
- Marked As Answer by Jerry NeeModerator Wednesday, March 07, 2012 9:20 AM