[Synchronous replication common error handling 3] The Stored Procedure sp_MSins_tablename cannot be found, and the stored procedure cannot be found

Source: Internet
Author: User

[Synchronous replication common error handling 3] The Stored Procedure sp_MSins_tablename cannot be found, and the stored procedure cannot be found

An error occurred while synchronizing the environment to SQL2008 R2

The error message is that the synchronization stored procedure called during synchronization is not found at the subscription end. The MS error message is as follows:

When a transaction is published in SQL SERVER automatic synchronization settings, select the subscription SERVER to insert, update, and delete data stored in each table. Scripts that contain these stored procedures are created by the snapshot agent and applied to the distribution agent of the subscription server during the initial synchronization. If you manually synchronize and subscribe to these buckets, they are not created and must be created manually. In this case (manual synchronization), if the subscription server does not have a stored procedure, the distribution job inserts the following error message: the Stored Procedure sp_MSins_tablename cannot be found.

The error image is as follows:


Some objects of the same DB object are OK, and some can generate the interfaces that have been stored synchronously. The following settings are invalid:


Solution:

1. Execute the following script on the publisher-data release page.

USE [Publish database] GOEXEC sp_scriptpublicationcustomprocs 'Publish name'


-- View objects not stored in synchronization

USE DBNameGOSELECT DISTINCT OBJECT_NAME (ID) FROM sys. sysdepends WHERE depid = OBJECT_ID ('table name') AND OBJECT_NAME (ID) LIKE 'SP [_] %'


2. Generate a synchronization Stored Procedure script. Find the script that does not generate a synchronization storage copy and run it on the subscription end.


Microsoft official website Introduction: Click to open the link

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.