Replication : Can’t find stored procedure


Occasionally, an error will display such as one of the following:

“Could not find stored procedure ‘sp_MSdel_ARTICLE_msrepl_ccsr’“

“Could not find stored procedure ‘sp_MSins_ARTICLE_msrepl_ccsl’“

“Could not find stored procedure ‘sp_MSupd_ARTICLE_msrepl_ccsl’“

It is unclear how the stored procedure gets dropped from the subscriber.  This typically means the normal initialization process did occur.  Normal initialization not only propagates the schema, but replication stored procedures are also created at the subscriber.  In this case, they are missing.

To correct the error message run the stored procedure Usp_CreateReplicationStoredProcsForGivenPublication at the publisher.  This will create (in text format) 3 stored procedure creation scripts. Execute these scripts on the subscriber and then execute the distribution agent to remove the error and propagate the insert normally.

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s