FIX: Unable to drop stored procedure execution article from P2P publication in SQL Server

Applies to: SQL Server 2014 DeveloperSQL Server 2014 EnterpriseSQL Server 2014 Standard More

Symptoms


Assume that you create a Peer-to-Peer (P2P) publication in Microsoft SQL Server and add a stored procedure execution article to it. When the stored procedure is executed at the Publisher, replication executes the corresponding procedure at the Subscriber. However, when you try to drop the stored procedure execution article, you may receive an error message that resembles the following:

Cannot drop article ProcedureName.

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

Cannot continue the execution because the session is in the kill state.

A severe error occurred on the current command.  The results, if any, should be discarded.

Changed database context to DatabaseName. (Microsoft SQL Server, Error: 596)

Resolution


This issue is fixed in the following cumulative updates for SQL Server:

       Cumulative Update 1 for SQL Server 2017

       Cumulative Update 8 for SQL Server 2016 RTM

       Cumulative Update 5 for SQL Server 2016 SP1

       Cumulative Update 6 for SQL Server 2014 SP2

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

References


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