Harish Sharma
10/11/2025, 7:02 AMkapa.ai
10/11/2025, 7:02 AMsql -- Enable CDC on the database EXEC sys.sp_cdc_enable_db; -- Enable CDC on the table EXEC sys.sp_cdc_enable_table @source_schema = N'{schema name}', @source_name = N'{table name}', @role_name = N'{role name}'; Make sure the Airbyte user has the correct permissions to access the CDC tables. For more details, see the [CDC setup instructions](https://docs.airbyte.com/integrations/sources/mssql#setting-up-cdc-for-mssql). 2. SQL Server Agent Not Running The SQL Server Agent must be running for CDC jobs to process changes. Check its status with: sql EXEC xp_servicecontrol 'QueryState', N'SQLServerAGENT'; If it’s not running, start it as per [Microsoft’s documentation](https://docs.airbyte.com/integrations/sources/mssql#5-ensure-the-sql-server-agent-is-running). 3. CDC Not Enabled on New Columns or Tables If you recently added new columns or tables, CDC does not automatically track them. You must disable and re-enable CDC on the table to capture new columns, or enable CDC on new tables. See [this troubleshooting guide](https://docs.airbyte.com/integrations/sources/mssql/mssql-troubleshooting#adding-columns-to-existing-tables-with-cdc). 4. CDC Retention and Log Cleanup If your syncs are infrequent, the CDC log entries may be cleaned up before Airbyte reads them, causing missed changes. Increase the retention period or run syncs more frequently. If you see errors about "Saved offset no longer present on the server," this is likely the cause. In such cases, reset the connection and adjust your retention/sync frequency as needed [see related issue](https://github.com/airbytehq/airbyte/issues/37772). 5. Initial Snapshot vs. Incremental Sync If you selected "New Changes Only" but Airbyte is still reading the full table, there may be a configuration issue. Double-check your replication method settings in Airbyte. There have been reports of the "New Changes Only" option not working as expected in some versions [see this issue](https://github.com/airbytehq/airbyte/issues/18860). 6. Connector or Airbyte Version Issues Some issues have been resolved in newer versions of Airbyte and its connectors. If you are running an older version, consider upgrading. If you have checked all the above and still do not see CDC changes in your destination, please provide more details such as Airbyte version, connector versions, and any relevant logs or error messages. This will help further diagnose the issue.Harish Sharma
10/11/2025, 7:09 AM[2025-10-11 12:33:36] [S0001][22905] Database 'xyz-dev' is already enabled for Change Data Capture. Ensure that the correct database context is set, and retry the operation. To report on the databases enabled for Change Data Capture, query the is_cdc_enabled column in the sys.databases catalog view.
[2025-10-11 12:33:36] completed in 555 msHarish Sharma
10/11/2025, 4:51 PMkapa.ai
10/11/2025, 4:51 PMHarish Sharma
10/11/2025, 4:51 PM[2025-10-11 12:33:36] [S0001][22905] Database 'xyz-dev' is already enabled for Change Data Capture. Ensure that the correct database context is set, and retry the operation. To report on the databases enabled for Change Data Capture, query the is_cdc_enabled column in the sys.databases catalog view.
[2025-10-11 12:33:36] completed in 555 mskapa.ai
10/11/2025, 4:51 PMkapa.ai
10/11/2025, 4:52 PMsql EXEC sys.sp_cdc_enable_table @source_schema = N'{schema name}', @source_name = N'{table name}', @role_name = N'{role name}'; Make sure the Airbyte user has the necessary permissions to read from the CDC tables and schema. If you run into access issues, grant SELECT on the cdc schema to your Airbyte user as described in the setup guide [see: Setting up CDC for MSSQL](https://docs.airbyte.com/integrations/sources/mssql#setting-up-cdc-for-mssql). 2. Check for New Columns or Schema Changes If you have recently added columns to a CDC-enabled table, these will not be automatically tracked. You need to disable and re-enable CDC on the table to capture the new columns. See the [troubleshooting guide](https://docs.airbyte.com/integrations/sources/mssql/mssql-troubleshooting#adding-columns-to-existing-tables-with-cdc) for the exact steps. 3. Sync Frequency and CDC Retention If your syncs are not frequent enough, SQL Server may clean up CDC log entries before Airbyte can read them, resulting in missed changes. This is a common cause of missing CDC data. You may need to increase the CDC retention period or run Airbyte syncs more frequently to avoid this issue. If you see errors about "Saved offset no longer present on the server," this is likely the cause [see: Github Issue 37772](https://github.com/airbytehq/airbyte/issues/37772). 4. Initial Snapshot vs. Incremental Sync The first sync after enabling CDC will take a full snapshot. Only subsequent syncs will use the CDC logs. If you are not seeing changes after the initial sync, ensure that the syncs are running successfully and that the Airbyte connection is configured for incremental sync with CDC enabled [see: Change Data Capture (CDC)](https://docs.airbyte.com/platform/understanding-airbyte/cdc). 5. Connector and Airbyte Version Some issues with CDC (such as the "New Changes Only" option not working as expected) have been reported in specific versions. If you are running an older version of Airbyte or the MSSQL connector, consider upgrading to the latest version [see: Github Issue 18860](https://github.com/airbytehq/airbyte/issues/18860). 6. Permissions Ensure the Airbyte user has the correct permissions, including SELECT on the CDC schema and, if possible, VIEW SERVER STATE to check the status of the SQL Server Agent [see: Create a user and grant appropriate permissions](https://docs.airbyte.com/integrations/sources/mssql#3-create-a-user-and-grant-appropriate-permissions). If you have confirmed all the above and still do not see CDC changes in your destination, please check the Airbyte sync logs for errors or warnings, and verify that the connection is configured for incremental sync with CDC. If you encounter specific error messages, please share them for more targeted troubleshooting.