The ServerBCPKeepNulls property controls the handling of missing values for all columns accepting NULL and possessing a default value constraint when importing data.
object.ServerBCPKeepNulls [= value]
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
value | True or False |
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.
Boolean
Read/write
HRESULT GetServerBCPKeepNulls(LPBOOL pRetVal);
HRESULT SetServerBCPKeepNulls(BOOL NewValue);