Estuary

SQL Server CDC to ClickHouse: Real-Time Replication, Step by Step

TUTORIALS10/23/2026

Learn how to stream SQL Server data to ClickHouse in real time using Change Data Capture (CDC) with Estuary. This step-by-step tutorial shows how to replicate SQL Server inserts, updates, and deletes into ClickHouse for real-time analytics, without running analytical queries on your production SQL Server tables.

How does SQL Server to ClickHouse CDC work?

SQL Server's native CDC feature captures database changes from its transaction log and stores them in CDC change tables. Estuary reads these changes, streams them into collections, and continuously materializes the data into ClickHouse.

This lets you keep ClickHouse updated with SQL Server data without building and managing a separate Kafka-based pipeline.

What you'll learn:

- How SQL Server Change Data Capture (CDC) works
- How to enable CDC on SQL Server databases and tables
- How to configure the SQL Server CDC connector in Estuary
- How to stream SQL Server changes into ClickHouse
- How ClickHouse handles CDC updates, deletes, and row versions
- How to query the latest data using ClickHouse's `FINAL` keyword
- How to verify real-time replication with live inserts, updates, and deletes

Step-by-step chapters:

00:00 SQL Server to ClickHouse: Real-time analytics overview
00:10 How SQL Server Change Data Capture works
00:35 Enable CDC on SQL Server
01:00 Configure the SQL Server CDC connector in Estuary
01:15 Public, private, and BYOC data planes
01:50 Connection details and network configuration
02:27 Discover SQL Server tables and publish the capture
03:05 Preview captured CDC data in Estuary
03:36 How ClickHouse handles updates and deletes
04:06 Configure ClickHouse materialization in Estuary
05:26 Live demo: SQL Server inserts, updates, and deletes in ClickHouse
06:08 Recap

Documentation and resources:

SQL Server CDC connector documentation: https://docs.estuary.dev/reference/Connectors/capture-connectors/SQLServer/

ClickHouse materialization documentation: https://docs.estuary.dev/reference/Connectors/materialization-connectors/ClickHouse/

How to enable CDC in SQL Server: https://estuary.dev/blog/enable-sql-server-change-data-capture/

Try Estuary: https://dashboard.estuary.dev/register

Estuary helps teams build real-time data pipelines using CDC, streaming, and batch data integration.

#SQLServer #ClickHouse #ChangeDataCapture

More videos

Estuary logo on light background

Seamless Data Integration, Unlimited Potential

Discover the simplest way to connect and move your data.Get hands-on for free, or schedule a demo to see the possibilities for your team.