Support Multiple Capture Instances for SQL Server CDC Connectors
Which connector?: SQL Server
Additional details:
We would like Fivetran to support multiple CDC capture instances for the same SQL Server source table when using the SQL Server connector with the CDC update method.
Currently, Fivetran expects a table to have a single supported CDC capture instance. This creates operational challenges when performing schema changes on CDC-enabled SQL Server tables.
Background
SQL Server CDC supports having up to two capture instances for a source table. This capability is commonly used to perform schema evolution with minimal or no interruption to change data capture.
A typical schema-change workflow is:
-
An existing source table is already enabled for CDC with capture instance
capture_instance_v1. -
A schema change is required, such as adding or modifying columns.
-
A second capture instance,
capture_instance_v2, is created with the updated schema. -
Both capture instances temporarily coexist.
-
Downstream consumers transition from the old capture instance to the new one.
-
After the migration is validated and the required historical CDC records are processed, the old capture instance is removed.
This is a standard SQL Server CDC mechanism for handling schema evolution without immediately discarding the existing CDC history.
Current Limitation
When Fivetran encounters multiple capture instances for the same SQL Server table, the connector does not support selecting or transitioning between them.
As a result, customers may need to:
-
Disable the existing capture instance before enabling a new one.
-
Risk losing access to unprocessed CDC records from the previous capture instance.
-
Perform connector re-syncs after schema changes.
-
Introduce replication downtime during schema evolution.
-
Coordinate source schema changes tightly with Fivetran connector operations.
For large databases and high-volume tables, full re-syncs can be expensive in terms of time, compute, network traffic, and destination processing.
Requested Functionality
We request that the Fivetran SQL Server connector support multiple CDC capture instances for a single source table.
Ideally, the connector should support one or more of the following behaviors:
-
Detect all CDC capture instances associated with a source table.
-
Identify which capture instance is currently being consumed by Fivetran.
-
Allow customers to explicitly configure the capture instance that Fivetran should use.
-
Automatically identify the newest compatible capture instance after a schema change.
-
Continue consuming the existing capture instance while transitioning safely to the new capture instance.
-
Preserve the CDC position/LSN during the transition wherever possible.
-
Prevent duplicate or missed records when switching between capture instances.
-
Expose the selected capture instance through the Fivetran UI, REST API, and Terraform provider.
-
Provide validation or warnings when multiple capture instances exist and an automatic transition cannot be performed safely.
Please sign in to leave a comment.
Comments
0 comments