sys.sp_cdc_enable_table
Enables change data capture for the specified source table in the current database.
What changes
- Input
- Not stated in the Microsoft summary.
- Output or change
- Enables change data capture for the specified source table in the current database.
Syntax at a glance
sys.sp_cdc_enable_table
[ @source_schema = ] N'source_schema'
, [ @source_name = ] N'source_name'
[ , [ @capture_instance = ] N'capture_instance' ]
[ , [ @supports_net_changes = ] supports_net_changes ]
, [ @role_name = ] N'role_name'
[ , [ @index_name = ] N'index_name' ]
[ , [ @captured_column_list = ] N'captured_column_list' ]
[ , [ @filegroup_name = ] N'filegroup_name' ]
[ , [ @allow_partition_switch = ] allow_partition_switch ]
[ , [ @enable_extended_ddl_handling = ] enable_extended_ddl_handling ]
[ ; ]
Work example
Enables change data capture for the specified source table in the current database.
Write a proposed call on paper. Name the target, required permission, expected change, and recovery step before any lab use.
Check your work What can this procedure change or start, and what permission does it need?
Open Microsoft Learn for full syntax, permissions, and details for your version.