ServerBCPKeepNulls Property (SQL-DMO)

The ServerBCPKeepNulls property controls the handling of missing values for all columns accepting NULL and possessing a default value constraint when importing data.

Applies To

BulkCopy Object

Syntax

object.ServerBCPKeepNulls [= value]

Part Description
object Expression that evaluates to an object in the Applies To list
value True or False

Remarks

When True, NULL is inserted when missing values are encountered in the data file. The default constraint does not supply a value for the column.

When False (default), the default constraint provides a value for any missing values encountered in the data file.

The ServerBCPKeepNulls property is interpreted only when importing data and when the UseServerSideBCP property of the BulkCopy object is True.

Data Type

Boolean

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetServerBCPKeepNulls(LPBOOL pRetVal);

HRESULT SetServerBCPKeepNulls(BOOL NewValue);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.