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 support level to Replication Server version 12.0 and Adaptive Server version 12.0. If you upgrade the database, the feature set will remain at the Adaptive Server version 12.0 level.

all

Sets the schema replication support level to that of the current Adaptive Server. If you upgrade the database, the feature set of the later release 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