The information in this article applies to:
SYMPTOMS
When doing a bulk copy from an ASCII data file into SQL Server with a
char column that does not allow nulls, and where the data file does
not have data for that column (intending to insert default value bound
to the column), the rows are copied successfully, but the following
message is displayed once for each row:
This happens only if the column is a char datatype and is defined as not null and the data file does not contain any data for that column. This does not happen if the column is of type varchar. WORKAROUND
You can create a temporary table with the char column defined as
allowing nulls, BCP in data into that table and then insert data from
the temp table to the actual table with non-null char column using an
INSERT statement.
STATUSMicrosoft has confirmed this to be a problem in SQL Server version 4.2. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available Additional query words: bcp bulk copy program error err msg errmsg alert
Keywords : kbtool SSrvBCP kbbug4.20 SSrvWinNT |
Last Reviewed: March 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |