IDTSBulkInsertTask.KeepIdentity 屬性
此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。
Gets or sets a value that specifies how identity value or values in the imported data file are used for the identity column.
命名空間: Microsoft.SqlServer.Dts.Tasks.BulkInsertTask
組件: Microsoft.SqlServer.BulkInsertTask (在 Microsoft.SqlServer.BulkInsertTask.dll 中)
語法
'宣告
Property KeepIdentity As Boolean
Get
Set
'用途
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)
屬性值
型別: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.
備註
For more information, see BulkInsertTask.