NotForRepl Property
后续版本的 Microsoft SQL Server 将删除该功能。请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。
The NotForRepl property enables or disables an IDENTITY constraint for data inserted by a replication process.
语法
object.NotForRepl [= value]
Parts
- object
An expression that evaluates to an object in the Applies To list
- value
TRUE or FALSE
Data Type
Boolean
Modifiable
Read/write if using the Column object to create or alter a Microsoft SQL Server table. Read-only if the Column object references an existing column.
Prototype (C/C++)
HRESULT GetNotForRepl(LPBOOL pRetVal);
HRESULT SetNotForRepl(BOOL NewValue);
备注
If TRUE, the IDENTITY constraint is not enforced when data is added to the table by a known replication login. The replication process provides identity values.
If FALSE, the IDENTITY constraint is enforced regardless of the data source.