Using sp_setrepproc to copy user stored procedures

To copy the execution of a user stored procedure to the standby database, mark the stored procedure for replication with sp_setrepproc. Procedures marked with sp_setrepproc are also reproduced at replicate databases if subscriptions have been created for them.

There are two possible scenarios for stored procedure execution in warm standby applications:

See Chapter 10, “Managing Replicated Functions” in the Replication Server Administration Guide Volume 1 for more information about the sp_setrepproc system procedure.

If the database is the master database, user procedures are not replicated.