sp_setreptable

Description

Use sp_setreptable to mark individual tables to not be replicated, regardless of the database setting.

Syntax

sp_setreptable [tabname [, 'true' | 'false' | 'never']] 

Parameters

Example

Example 1 To disable replication on table tnever in database pdb, use:

sp_reptostandby pdb, 'ALL'
go
sp_setreptable tnever, 'never'
go

Usage

In warm standby configurations, all tables are replicated when sp_reptostandby has been set to ALL or L1. To avoid replication on specific tables, mark the table to never replicate. Any modification performed on it is therefore not marked as replicated in the transaction log.