sp_reptostandby

Description

Marks or unmarks database for replication to the standby database. Enables replication of supported schema changes and data changes to user tables.

Syntax

sp_reptostandby dbname [, 'L1' | 'all' | 'none' ]

Parameters

dbname

is the name of the active database.

L1

Sets the schema replication feature set support level to the support level first introduced in Adaptive Server version 12.0. If you upgrade the Adaptive Server to a later version that implements a higher support level (that is, L2, L3, and so on) the support level will remain at the Adaptive Server version 12.0 support level. To date, only support level L1 has been implemented in Adaptive Server version 12.0 and alter.

all

Sets the schema replication feature set support level to the highest support level implemented by the current Adaptive Server. If you upgrade the Adaptive Server to a later version, the highest support level implemented by the later version is enabled automatically.

none

Unmarks all database tables for replication and turns off data and schema replication to the standby database.

NoteIf you turn replication off using sp_reptostandby with the none keyword, Adaptive Server locks all user tables in exclusive mode and writes log records for all tables that are unmarked for replication. This can be time-consuming if there are many user tables in the database.

Usage


Restrictions and requirements

Permissions

sp_reptostandby requires “sa” or “dbo” permission or replication_role.

See also

set replication, sp_setrepcol, sp_setreptable,sp_setreplicate, sp_setrepproc