r/SQLServer • • May 18 '26

Solved SQL Server 2022 - CDC stopped working

We have an ERP System which is using SQL Server 2022. I have CDC enabled for a couple of tables, because I am mirroring them to Microsoft Fabric for data analysis. Now I have noticed that CDC simply stopped working a few days ago. is_tracked_by_cdc is still set to 1 for these tables, but writing a new row through the ERP does not trigger a new in the related CDC table.

I have disabled/reenabled CDC but to no avail.

Any ideas on what the issue might be?

3 Upvotes

13 comments sorted by

View all comments

Show parent comment

1

u/PaulPhxAz 1 May 18 '26

Suggestions:

  1. Monitoring in general, lots of tools can help ( Zabbix + PagerDuty or BetterStack ). Or NXLog and consuming it into your log stack.
  2. Add a script to Task Scheduler that starts the SQL Agent -- run it every 5 minutes... if it's already on, it'll just "Ok-continue". If it's off, it'll turn it on.