How to troubleshoot SQL Server synchronous replication

Source: Internet
Author: User

1. The row was not found at the subscriber when the copied command was applied


workaround: Use system stored procedure sp_browsereplcmds "

Sp_browsereplcmds'xact_seqno_start]     ' xact_seqno_end  ]     ' originator_id]       'publisher_database_id]     '  article_id    ]],    @agent_id agent_id ]    , @compatibility_level Compatibility_level ]
Troubleshooting: At the Distributor-distribution db (distribution)


--The 1th statement will appear in the following two scenarios (A/b)

--a, the row was not found on update

{ call [dbo]. [sp_msupd_dbo table name ]  (.....)}

--b, deleted when the row was not found

{ call [dbo]. [sp_msdel_dbo table name ]  (......}

Understanding Synchronization Stored Procedures:


Workaround (a, update,b, delete ): Add the missing data rows to the Subscriber (add a record based on the error ID above) or import and export the method ( SQL statement synchronization specifies the above ID). (Cause: A missing data row on the subscriber causes the delete or update to not find the data row and error)

--c, error when new

{ call [dbo]. [sp_msins_dbo table ]


Workaround (c, error on new ): Error when new, workaround based on the hint may be the identity value or the primary health ID is not worth the data (delete the Subscriber) or the table structure


How to troubleshoot SQL Server synchronous replication

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.