共用方式為


IDTSBulkInsertTask.KeepNulls 屬性

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Gets or sets a value that indicates whether empty columns should retain a nullnull 參考 (在 Visual Basic 中為 Nothing) value during the bulk load operation, or insert default values into the columns.

命名空間:  Microsoft.SqlServer.Dts.Tasks.BulkInsertTask
組件:  Microsoft.SqlServer.BulkInsertTask (在 Microsoft.SqlServer.BulkInsertTask.dll 中)

語法

'宣告
Property KeepNulls As Boolean 
    Get 
    Set
'用途
Dim instance As IDTSBulkInsertTask 
Dim value As Boolean 

value = instance.KeepNulls

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

屬性值

型別:System.Boolean
true if empty columns should retain a nullnull 參考 (在 Visual Basic 中為 Nothing) value during the bulk load operation; false if the specified default values should be inserted instead.

備註

For more information, see BulkInsertTask.

請參閱

參考

IDTSBulkInsertTask 介面

Microsoft.SqlServer.Dts.Tasks.BulkInsertTask 命名空間