Partager via


Propriété IDTSBulkInsertTask.KeepIdentity

Cette API prend en charge l'infrastructure SQL Server 2012 et n'est pas destinée à être utilisée directement à partir de votre code.

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

Espace de noms :  Microsoft.SqlServer.Dts.Tasks.BulkInsertTask
Assembly :  Microsoft.SqlServer.BulkInsertTask (en Microsoft.SqlServer.BulkInsertTask.dll)

Syntaxe

'Déclaration
Property KeepIdentity As Boolean 
    Get 
    Set
'Utilisation
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)

Valeur de propriété

Type : 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.

Notes

For more information, see BulkInsertTask.

Voir aussi

Référence

IDTSBulkInsertTask Interface

Espace de noms Microsoft.SqlServer.Dts.Tasks.BulkInsertTask