Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 1.72 KB

mssql-eng004929.md

File metadata and controls

38 lines (32 loc) · 1.72 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic ms.custom helpviewer_keywords monikerRange
MSSQL_ENG004929
MSSQL_ENG004929
MashaMSFT
mathoma
09/25/2024
sql
replication
reference
updatefrequency5
MSSQL_ENG004929 error
=azuresqldb-mi-current||>=sql-server-2016

MSSQL_ENG004929

[!INCLUDE SQL Server SQL MI]

Message Details

Attribute Value
Product Name SQL Server
Event ID 4929
Event Source MSSQLSERVER
Component [!INCLUDEssDEnoversion]
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 Add Articles to and Drop 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.

Related content