FIX: DML statements are unexpectedly replicated to the subscribers in SQL Server 2014 or 2016

Applies to: SQL Server 2014 DeveloperSQL Server 2014 DeveloperSQL Server 2014 Enterprise More

Symptoms


When you synchronize the subscribers for a transactional replication in Microsoft SQL Server 2014 or 2016, some DML statements that should not be replicated are replicated to the subscribers. This issue occurs when the following conditions are true: 
  • You configure a transactional replication to replicate the execution of the stored procedure.
  • The stored procedure (marked for replication) creates a clustered index on a temporary table.


Resolution


The issue was first fixed in the following cumulative update of SQL Server:

References


Learn about the terminology that Microsoft uses to describe software updates.