sp_setrepcol

sp_setrepcol now includes a use_index parameter.

Syntax

sp_setrepcol <tab_name> [, column_name] [, do_not_replicate |
replicate_if_change |
always_replicate]
[, use_index]

New parameter

use_index – creates an index for replication on the text or image columns.

Examples

Creates an index for replication on the t column:

create table t1 (c int, t text, i image)
go
sp_setreptable t1, true
go
sp_setrepcol t1, t, replicate_if_changed, use_index
go

Usage