Marking stored procedures for replication

The system procedure sp_setrepproc is used to mark stored procedures for replication. The syntax is:

sp_setrepproc [proc_name [, {'function' | 'table' | 'false'}, [{log_current |log_sproc} ] ] ]

where:

proc_name – the name of a stored procedure in the current database.

'function' – enables the replication for a stored procedure associated with a function replication definition.

'table' – enables replication for a stored procedure associated with a table replication definition. For information on replicating stored procedures associated with table replication definitions, see “Asynchronous Procedures”.

'false' - disables replication for the stored procedure.

'log_current' - logs the execution of the stored procedure you are replicating in the current database, not in the database where the stored procedure resides.

'log_sproc' - logs the execution of the stored procedure you are replicating in the database where the stored procedure resides, not in the current database. 'log_sproc' is the default parameter.

Use sp_setrepproc according to these guidelines: