返回指定沖突表中的行。該存儲過程在存儲有沖突表的計算機上運行。
sp_helpmergeconflictrows [ [ @publication = ] 'publication' ]
, [ @conflict_table = ] 'conflict_table'
[ , [ @publisher = ] 'publisher' ]
[ , [ @publisher_db = ] 'publsher_db' ]
[@publication =] 'publication'
是發(fā)布名稱。publication 的數(shù)據(jù)類型為 sysname,默認設(shè)置為 %。如果已指定發(fā)布,則返回由該發(fā)布限定的全部沖突。例如,如果 Conflict_Customers 表有 WA 和 CA 發(fā)布的沖突行,則傳遞發(fā)布名稱 CA 將只檢索屬于 CA 發(fā)布的沖突。
[@conflict_table =] 'conflict_table'
是沖突表名。conflict_table 的數(shù)據(jù)類型為 sysname,沒有默認設(shè)置。
[@publisher =] 'publisher'
是發(fā)布服務(wù)器名稱。publisher 的數(shù)據(jù)類型為 sysname,默認設(shè)置為 NULL。
[@publisher_db =] 'publisher_db'
是發(fā)布服務(wù)器數(shù)據(jù)庫名稱。publisher_db 的數(shù)據(jù)類型為 sysname,默認設(shè)置為 NULL。
sp_helpmergeconflictrows 返回由基表結(jié)構(gòu)和下列附加列組成的結(jié)果集。
列名 | 數(shù)據(jù)類型 | 描述 |
---|---|---|
origin_datasource | varchar(255) | 沖突的原始數(shù)據(jù)源。 |
conflict_type | int | 表示沖突類型的代碼: 1 = UpdateConflict:在行級上檢測到?jīng)_突。 |
reason_code | int | 可能與上下文相關(guān)的錯誤代碼。 |
reason_text | varchar(720) | 可能與上下文相關(guān)的錯誤描述。 |
Pubid | uniqueidentifier | 發(fā)布標識符。 |
sp_helpmergeconflictrows 用于合并復(fù)制。
執(zhí)行權(quán)限默認授予 public 角色。
相關(guān)文章