The information in this article applies to:
SYMPTOMS
Using the default data formats of the bcp_init() function does not
work correctly while trying to bulk copy a file that exactly
matches the following table column for column:
CAUSE
Columns that allow nulls are being used. According to page 219 of
the "Microsoft SQL Server Programmer's Reference for C" version
1.11 manual, the default data formats for columns that allow nulls
are as follows:
If a given database column's date is variable length or can contain null values, the operating system file's data column is prefixed by a... 1 byte length value... WORKAROUND
Because nulls are being used in the table definition, the 1-byte
prefix length must be included in the data file, or the following
code fragment, which uses nondefault (that is, no prefix)
formatting, can be used instead:
Keywords : kbtool SSrvBCP |
Last Reviewed: March 11, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |