Cannot Replicate “Stored Procedure Execution” when CDC is Enabled
Taiyebali Zakir | Support Escalation Engineer | MS SQL Server CTS
Replicate Execution of Stored Procedure and CDC:
With Transactional Replication you can replicatethe execution of the Stored Procedure like this:
This has several advantages as discussed in this article: http://msdn.microsoft.com/en-us/library/ms152754.aspx .
When you enable Change Data Capture (CDC) at the Database level, replication of the stored procedure execution will NOT work. This is By Design. Change Data Capture (CDC) does not support tracking at stored procedure execution level, which means individual rows logged by stored procedure execution need to be flagged with REPLICATE bit, which makes it impossible for Transactional Replication to replicate only the stored procedure execution. As a result, ‘stored proc execution’ will work only when Transactional Replication is enabled and CDC is not enabled.