Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server
Used for supportability of merge publications by enabling an administrator to skip selected pending schema changes, so that they aren't replicated. This stored procedure is executed at the Publisher on the publication database.
Caution
This stored procedure can cause schema changes not to be replicated. It should only be used to resolve issues after other methods, such as reinitialization, have already been tried or are too expensive in terms of performance.
sp_markpendingschemachange
[ @publication = ] N'publication'
[ , [ @schemaversion = ] schemaversion ]
[ , [ @status = ] N'status' ]
[ ; ]
The name of the publication. @publication is sysname, with no default.
Identifies a pending schema change. @schemaversion is int, with a default of 0
. Use sp_enumeratependingschemachanges to list the pending schema changes for the publication.
Specifies whether a pending schema change is skipped. @status is nvarchar(10), with a default of active
. If the value of @status is skipped
, then the selected schema change isn't replicated.
0
(success) or 1
(failure).
sp_markpendingschemachange
is used with merge replication.
sp_markpendingschemachange
is a stored procedure intended for the supportability of merge replication and should be used only when other corrective actions, such as reinitialization, have failed to correct the situation or are too expensive in terms of performance.
Only members of the sysadmin fixed server role or db_owner fixed database role can execute sp_markpendingschemachange
.
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register today