IncludeIdentityValues Property (SQL-DMO)

The IncludeIdentityValues property controls the handling of existing values for a column with the Microsoft® SQL Server™ identity property when data is copied to the SQL Server table.

Applies To

BulkCopy Object

Syntax

object.IncludeIdentityValues [= value]

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

Remarks

When True, SQL-DMO executes a SET IDENTITY_INSERT ON statement when the ImportData method of a Table object is called.

When False, SQL-DMO ignores any data values present for a column with the identity property. SQL Server generates data values for the column by using the column’s setting for identity seed and increment. The default is False.

Data Type

Boolean

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetIncludeIdentityValues(LPBOOL pRetVal);

HRESULT SetIncludeIdentityValues(BOOL NewValue);

See Also

SET IDENTITY_INSERT

  


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