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.
The issue was first fixed in the following cumulative update of SQL Server:
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. We recommend that you download and install the latest cumulative updates for SQL Server:
Learn about the terminology that Microsoft uses to describe software updates.