ExcludeReplication Property
后续版本的 Microsoft SQL Server 将删除该功能。 请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。
The ExcludeReplicationproperty controls integrity and FOREIGN KEY constraint enforcement when replicated data is inserted into the columns on which the constraint is defined.
语法
object.ExcludeReplication [=value]
Part
object
An expression that evaluates to an object in the Applies To listvalue
TRUE or FALSE
Data Type
Boolean
Modifiable
Read/write before object creation. Read-only if an existing object is referenced.
Prototype (C/C++)
HRESULT GetExcludeReplication(LPBOOL pRetVal);
HRESULT SetExcludeReplication(BOOL NewValue);
注释
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.