MSSQL_ENG004929

Message Details

Product Name

SQL Server

Product Version

10.50

Product Build Number

 

Event ID

4929

Event Source

MSSQLSERVER

Component

SQL Server Database Engine

Symbolic Name

Message Text

Cannot alter the %S_MSG '%.*ls' because it is being published for replication.

Explanation

This error typically occurs if you attempt to drop the primary key constraint on a table that is published for transactional replication. Transactional replication requires a primary key for each published table; therefore the constraint cannot be dropped.

User Action

To drop the constraint, first drop the article associated with the table. For more information, see Adding Articles to and Dropping Articles from Existing Publications. If this error occurs in a database that is not replicated, execute sp_removedbreplication (Transact-SQL) to ensure objects in the database are not marked as replicated.