Freigeben über


IDTSBulkInsertTask.KeepIdentity-Eigenschaft

Diese API unterstützt die SQL Server 2012-Infrastruktur und ist nicht zur direkten Verwendung im Code bestimmt.

Gets or sets a value that specifies how identity value or values in the imported data file are used for the identity column.

Namespace:  Microsoft.SqlServer.Dts.Tasks.BulkInsertTask
Assembly:  Microsoft.SqlServer.BulkInsertTask (in Microsoft.SqlServer.BulkInsertTask.dll)

Syntax

'Declaration
Property KeepIdentity As Boolean 
    Get 
    Set
'Usage
Dim instance As IDTSBulkInsertTask 
Dim value As Boolean 

value = instance.KeepIdentity

instance.KeepIdentity = value
bool KeepIdentity { get; set; }
property bool KeepIdentity {
    bool get ();
    void set (bool value);
}
abstract KeepIdentity : bool with get, set
function get KeepIdentity () : boolean 
function set KeepIdentity (value : boolean)

Eigenschaftswert

Typ: System.Boolean
true if identity value or values in the imported data file should be used for the identity column. true assigns the values that are specified in the source file to the identity column; false ignores the identity-column values that are specified in the source. The default value is true.

Hinweise

For more information, see BulkInsertTask.

Siehe auch

Verweis

IDTSBulkInsertTask Schnittstelle

Microsoft.SqlServer.Dts.Tasks.BulkInsertTask-Namespace