Enable SQL Server CDC

Enable CDC on SQL Server databases and tables for change capture.

1|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/billynewport/demo_cokub_model --skill enable-sql-server-cdc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Enable SQL Server CDC
Source: https://github.com/billynewport/demo_cokub_model/tree/main/.claude/skills/enable-sqlserver-cdc
Command: npx skills add https://github.com/billynewport/demo_cokub_model --skill enable-sql-server-cdc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables Change Data Capture (CDC) on a SQL Server database and its tables, allowing automatic tracking of data changes (inserts, updates, and deletes) for downstream ingestion, auditing, and real-time analytics.

Core Features & Use Cases

  • Database-level CDC enablement: Enable CDC on a database to start capturing changes.
  • Table-level CDC enablement: Enable CDC selectively on specific tables as needed.
  • Verification & monitoring: Validate CDC status, capture jobs, and ensure data is available for ETL/streaming pipelines.
  • Use Case: Ensure near real-time data flow into a data warehouse by capturing changes as they occur.

Quick Start

Connect to the SQL Server host using your preferred client, verify that SQL Server Agent is running, enable CDC on the database with sp_cdc_enable_db, enable CDC on required tables with sp_cdc_enable_table, then verify capture instances and jobs and perform a test insert/update to confirm data changes appear in the CDC.

Frequently Asked Questions about Enable SQL Server CDC

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enable CDC on a SQL Server database and tables?

To enable SQL Server CDC, first verify the SQL Server Agent is running. Then, enable database-level CDC using sp_cdc_enable_db, followed by enabling table-level CDC with sp_cdc_enable_table for specific tables requiring change tracking.

What is Change Data Capture used for in SQL Server?

Change Data Capture in SQL Server tracks inserts, updates, and deletes on database tables. It is used for downstream ingestion, database auditing, replication, and enabling near real-time analytics by capturing data changes as they occur.

Do I need SQL Server Agent running to use Change Data Capture?

Yes, a running SQL Server Agent is a prerequisite for Change Data Capture. The verification process includes checking Agent status, as capture jobs are required to read transaction logs and populate the change tables for ETL pipelines.

How do I verify SQL Server CDC is working after enabling it?

Verify SQL Server CDC readiness by checking capture instances and confirming capture jobs are active. Perform a test insert and update on the source table to ensure the corresponding data changes appear in the CDC tables.

Can I enable Change Data Capture on specific tables instead of the whole database?

Yes, you can enable table-level CDC selectively on specific tables. After enabling database-level CDC with sp_cdc_enable_db, you apply sp_cdc_enable_table only to the tables needing change tracking for downstream ingestion.

Does SQL Server CDC work for on-premises and cloud environments?

SQL Server CDC works across both on-premises and cloud SQL Server environments. It captures data changes for streaming pipelines, ensuring near real-time data flow into data warehouses regardless of the hosting environment.