An audit trail or a warehouse feed needs every insert, update and delete on a table, without triggers on the write path. Change data capture (CDC) reads those changes from the transaction log, and sys.sp_cdc_enable_table switches it on for one table. One call creates the change table and its query functions. On the …
Read More