sp_setrepdefmode

Description

Changes or displays the owner status of tables marked for replication.

Syntax

sp_setrepdefmode table_name [,{'owner_on' | 'owner_off'}]

Parameters

table_name

The name of a table in the current database that has been marked for replication with sp_setreptable.

owner_on

Changes the owner status of the table so the table name and owner name are considered when the table is marked for replication. Enables replication of multiple tables of the same name with different owners.

owner_off

Changes the owner status of the table so that only the table name is considered when the table is marked for replication.

Usage

Permissions

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

See also

sp_setreptable