Freigeben über


IncludeIdentityValues Property

Dieses Feature wird in einer zukünftigen Version von Microsoft SQL Server entfernt. Verwenden Sie dieses Feature beim Entwickeln neuer Anwendungen nicht, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird.

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.

Syntax

object
.IncludeIdentityValues [= 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

Prototype (C/C++)

HRESULT GetIncludeIdentityValues(LPBOOL pRetVal);
HRESULT SetIncludeIdentityValues(BOOL NewValue);

Hinweise

If TRUE, SQL Distributed Management Objects (SQL-DMO) runs a SET IDENTITY_INSERT ON statement when the ImportData method of a Table object is called.

If 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.

Applies To:

BulkCopy Object

Siehe auch

Andere Ressourcen

SET IDENTITY_INSERT (Transact-SQL)

Hilfe und Informationen

Informationsquellen für SQL Server 2005