ExcludeReplication Property (SQL-DMO)

The ExcludeReplication property controls integrity and FOREIGN KEY constraint enforcement when replicated data is inserted into the columns on which the constraint is defined.

Applies To
Check Object Key Object

Syntax

object.ExcludeReplication [= value]

Part Description
object Expression that evaluates to an object in the Applies To list
value True or False

Remarks

If True, the FOREIGN KEY or integrity constraint is ignored for data inserted by replication.

If False, the FOREIGN KEY or integrity constraint is enforced for data inserted by replication.

Use the ExcludeReplication property to optimize replication data transfer. The property can be safely set if each source table for replicated data enforces the referenced constraint for all other means of adding data.

Data Type

Boolean

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetExcludeReplication(LPBOOL pRetVal);

HRESULT SetExcludeReplication(BOOL NewValue);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.