sp_setreplicate

Description

This system procedure enables or disables replication for an Adaptive Server table or stored procedure. It also displays the current replication status of a table or stored procedure.

NoteThis system procedure is still supported, but its capabilities have been incorporated into the system procedures sp_setreptable and sp_setrepproc. sp_setreplicate sets the replication status of columns with text, unitext, or image datatype to do_not_replicate. To replicate text, unitext, or image columns, use the sp_setreptable system procedure instead of sp_setreplicate. To specify individual text, unitext, or image columns for replication, use sp_setrepcol after using sp_setreplicate or sp_setreptable.

Syntax

sp_setreplicate [object_name [, {'true' | 'false'}]]

Parameters

object_name

is the name of a table or stored procedure in the current database.

true

enables replication for the table or stored procedure.

false

disables replication for the table or stored procedure.

Examples

Example 1

Displays the replication status for all of the tables and stored procedures in the current database.

sp_setreplicate

Example 2

Displays the replication status for the publishers table.

sp_setreplicate publishers

Example 3

Enables replication for the publishers table.

sp_setreplicate publishers, 'true'

Usage

See also

sp_setrepcol, sp_setrepproc, sp_setreptable