Cannot Replicate Stored Procedure Execution when CDC is enabled

Published 03-17-2021 01:18 PM 745 Views

With Transactional Replication you can replicate execution of the Stored Procedure like this:




This has several advantages as discussed in this article:


When you enable CDC at the Database level, replication of the stored procedure execution will NOT work. This is By Design. CDC does not support tracking at stored procedure execution level, which means individual rows logged by stored proc execution need to be flagged with REPLICATE bit, which makes it impossible for transactional replication to replicate stored proc execution.  As a result, ‘stored proc execution’ will work only when transactional replication is enabled and CDC is disabled.

Version history
Last update:
‎Mar 17 2021 01:17 PM
Updated by: