SQLServer Replication 常見錯誤
阿新 • • 發佈:2019-01-02
---------------跳過訂閱機器上面的錯誤------------------------
-----------------------在分發機器上--------------------------
--語法sp_helpsubscriptionerrors [ @publisher = ]'publisher'
, [ @publisher_db = ]'publisher_db'
, [ @publication = ]'publication'
, [ @subscriber = ]'subscriber'
, [ @subscriber_db = ]'subscriber_db '--get publisher subscriberselect*from MSsubscriber_info
--get publisher_db publication subscriber_db=publisher_dbselect*from MSpublications
--examplesp_helpsubscriptionerrors 'SQLw2k8','dbtranpub','dbtranpub_pub','SQLw2k8Subscriber','dbtransub'--獲取xact_seqno 值----------------------在訂閱機器上--------------------------- sp_setsubscriptionxactseqno [ @publisher= ]'publisher',
[ @publisher_db= ]'publisher_db',
[ @publication= ]'publication',
[ @xact_seqno= ] xact_seqno
--examplesp_helpsubscriptionerrors 'SQLw2k8','dbtranpub','dbtranpub_pub',xact_seqno
-------------------------------------------------------------------------------------
-----------------------在分發機器上--------------------------
--語法sp_helpsubscriptionerrors [ @publisher = ]'publisher'
, [ @publisher_db = ]'publisher_db'
, [ @publication = ]'publication'
, [ @subscriber = ]'subscriber'
, [ @subscriber_db = ]'subscriber_db
--get publisher_db publication subscriber_db=publisher_dbselect*from MSpublications
--examplesp_helpsubscriptionerrors 'SQLw2k8','dbtranpub','dbtranpub_pub','SQLw2k8Subscriber','dbtransub'--獲取xact_seqno 值----------------------在訂閱機器上---------------------------
[ @publisher_db= ]'publisher_db',
[ @publication= ]'publication',
[ @xact_seqno= ] xact_seqno
--examplesp_helpsubscriptionerrors 'SQLw2k8','dbtranpub','dbtranpub_pub',xact_seqno
-------------------------------------------------------------------------------------