I have enabled CDC using the following steps:
exec sys.sp_cdc_enable_db;
exec sys.sp_cdc_enable_table
@source_schema = N'dbo',
@source_name = N'table_name',
@role_name = N'CDC_Access',
@supports_net_changes = 1;
I can see that a CT table has been created in the System Tables; SQL Server Agent is on, and I can see the cdc.db_name_capture job has been created and is running.
However, even though the table_name table is being populated, I never see anything in the CT table. I have other tables that have CDC enabled for them in the same database which are being updated, and CDC is capturing data for them and storing it in the CT table created for that specific table.
Why would this one table not be capturing data even though other tables are?
I read online that perhaps it has something to do with the transaction log becoming too large, but I still have plenty of drive space left (~2TB free).
What can I do to debug this issue?
Thank you so much, in advance! :)
Here is the output of exec sys.sp_cdc_help_change_data_capture
. subscription_events is the table that I am having troubles with.
Here is the output of exec sys.sp_cdc_help_jobs;
.
Here is the output of select * from sys.dm_cdc_log_scan_sessions;
.
Here is the output of select * from sys.dm_cdc_errors;
Running select serverproperty('productversion')
provides the following version number: 11.0.3401.0
.
Do the following:
EXEC sp_repldone @xactid = NULL, @xact_segno = NULL, @numtrans = 0, @time = 0, @reset = 1; EXEC sp_replflush;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With