sp_markpendingschemachange (Transact-SQL)

適用於:SQL Server

用於合併式發行集的支援性,方法是讓系統管理員略過選取的擱置架構變更,使其不會複寫。 這個預存程式會在發行集資料庫的發行者端執行。

警告

此預存程式可能會導致架構變更不復寫。 它應該只用來解決其他方法之後的問題,例如重新初始化、已嘗試或效能太昂貴。

語法

  
sp_markpendingschemachange [@publication = ] 'publication'  
    [ , [ @schemaversion = ] schemaversion ]  
    [ , [ @status = ] 'status' ]  

引數

[ @publication = ] 'publication' 這是發行集的名稱。 publication sysname ,沒有預設值。

[ @schemaversion = ] schemaversion 識別擱置的架構變更。 schemaversion int ,預設值為 0 。 使用 sp_enumeratependingschemachanges (Transact-SQL) 列出發行集的擱置架構變更。

[ @status = ] 'status' 這是是否要略過暫止的架構變更。 status Nvarchar(10), 預設值為 使用中 。 如果略過 狀態 的值,則不會複寫選取的 架構變更。

傳回碼值

0 (成功) 或 1 (失敗)

備註

sp_markpendingschemachange 與合併式複寫搭配使用。

sp_markpendingschemachange 是一種預存程式,適用于合併式複寫的支援性,只有在其他更正動作,例如重新初始化、無法更正情況或效能太昂貴時,才應該使用。

權限

只有系統管理員 固定伺服器角色或 db_owner 固定資料庫角色的成員 才能執行 sp_markpendingschemachange

另請參閱

sysmergeschemachange (Transact-SQL)