FIX: Error 21050 when you remove a table that is not part of a publication in SQL Server 2014 or 2016

Gilt für: SQL Server 2014 DeveloperSQL Server 2014 DeveloperSQL Server 2014 Enterprise

Symptoms


Assume that you connect to an instance of SQL Server 2014 or 2016 as a user who is not a member of the sysadmin fixed server group or the db_owner database group. If replication is enabled for a database and you remove a table that is not a part of a publication in the database, you may receive error messages that resemble the following:

Msg 21050, Level 14, State 1, Procedure sp_MSreplcheck_publish, Line 16
Only members of the sysadmin fixed server role or db_owner fixed database role can perform this operation. Contact an administrator with sufficient permissions to perform this operation.
Msg 3609, Level 16, State 2, Line 269
The transaction ended in the trigger. The batch has been aborted.

Resolution


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

    Cumulative Update 5 for SQL Server 2016 RTM

    Cumulative Update 2 for SQL Server 2016 SP1
  
About cumulative updates for SQL Server

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 Microsoft uses to describe software updates.