HiveBrain v1.2.0
Get Started
← Back to all entries
patternMinor

The issue of sp_MScheckIsPubOfSub stored procedure

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
storedtheissuesp_mscheckispubofsubprocedure

Problem

We have SQL Server 2008 R2 Merge replication set up.

We have 20+ push subscriptions.

Once in a while I get the following error message during the sync:

Error messages: The merge process could not set the status of the subscription correctly.
(Source: MSSQL_REPL, Error number: MSSQL_REPL-2147200963)
Could not find stored procedure 'dbo.sp_MScheckIsPubOfSub'.
(Source: MSSQLServer, Error number: 2812)


I have found the code for the mentioned SP & ran it against the subscriber database & everything worked fine.

My question is: why is this stored procedure getting deleted every now and then by itself ? And how I can troubleshoot this issue?

Solution

Please check for orphaned rows for deleted subscriptions in sysmergesubscriptions and delete them. For example, the subscriber that this is failing on may have duplicate entries in sysmergesubscriptions, one being orphaned from a previously deleted subscription.

This has been the cause of this error and solution for clients of mine in the past, ymmv. I hope this helps.

Context

StackExchange Database Administrators Q#28489, answer score: 4

Revisions (0)

No revisions yet.