ServerBCPKeepNulls Property
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]
Parts
object
Expression that evaluates to an object in the Applies To list
value
TRUE or FALSE
Data Type
Boolean
Modifiable
Read/write
Prototype (C/C++)
HRESULT GetServerBCPKeepNulls(LPBOOL pRetVal);
HRESULT SetServerBCPKeepNulls(BOOL NewValue);
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, the default constraint provides a value for any missing values encountered in the data file. FALSE is the default value.
The ServerBCPKeepNulls property is interpreted only when importing data and when the UseServerSideBCP property of the BulkCopy object is TRUE.