September 2010
Intermediate to advanced
1704 pages
111h 8m
English
After you enable change data tracking for a table, SQL Server begins capturing any data changes for the table in the Change Data Capture tables. To identify the data changes, you need to query the Change Data Capture tables. Although you can query the Change Data Capture tables directly, it is recommended that you use the CDC functions instead. The main CDC table-valued functions (TVFs) are
• cdc.fn_cdc_get_all_changes_capture_instance
• cdc.fn_cdc_get_net_changes_capture_instance
The Change Data Capture change table and associated CDC table-valued functions created along with it constitute what is referred to as a capture instance. A capture instance is created for every source table that is enabled for CDC.