您好,登錄后才能下訂單哦!
應用復制的命令時在訂閱服務器上找不到該行
錯誤消息
嘗試的命令:if @@trancount > 0 rollback tran
事務序列號:
--0x0000FDAB0003A908008F00000000 命令 ID: 7
錯誤消息:
應用復制的命令時在訂閱服務器上找不到該行。 (源: MSSQLServer,錯誤號: 20598)
獲取幫助: http://help/20598
應用復制的命令時在訂閱服務器上找不到該行。 (源: MSSQLServer,錯誤號: 20598)
獲取幫助: http://help/20598
在發(fā)布數(shù)據(jù)庫上執(zhí)行以下語句查看錯誤事務的id
use distribution
go
exec sp_helpsubscriptionerrors 'SSDTCEMANTEST','ssdt','skl_11_8','ANCHNET','ssdt';
use distribution
go
select * from
dbo.MSarticles m
where exists (select mc.article_id from MSrepl_commands mc where mc.xact_seqno=0x00011F4000009D42006B00000000 AND mc.article_id = m.article_id )
EXEC Sp_browsereplcmds
@xact_seqno_start='0x00011F4000009D42006B00000000',
@xact_seqno_end='0x00011F4000009D42006B00000000'
根據(jù)實際情況判斷,要恢復數(shù)據(jù)還是跳過卡住的事務ID
---------------跳過訂閱機器上面的錯誤------------------------
-----------------------在分發(fā)機器上--------------------------
--語法
exec sp_helpsubscriptionerrors [ @publisher = ]'publisher'
, [ @publisher_db = ]'publisher_db'
, [ @publication = ]'publication'
, [ @subscriber = ]'subscriber'
, [ @subscriber_db = ]'subscriber_db'
--get publisher subscriber
select*from MSsubscriber_info
--get publisher_db publication subscriber_db=publisher_db
select*from MSpublications
--example
exec sp_helpsubscriptionerrors 'SQLw2k8','dbtranpub','dbtranpub_pub','SQLw2k8Subscriber','dbtransub'
--獲取xact_seqno 值
----------------------在訂閱機器上---------------------------
sp_setsubscriptionxactseqno [ @publisher= ]'publisher',
[ @publisher_db= ]'publisher_db',
[ @publication= ]'publication',
[ @xact_seqno= ] xact_seqno
--example(忽略)
exec sp_helpsubscriptionerrors 'SQLw2k8','dbtranpub','dbtranpub_pub',xact_seqno;
免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內容。