다음을 통해 공유


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.

Applies To: