BUG: BCP Fails with Text Greater than 255 Bytes and FormatLast reviewed: May 5, 1997Article ID: Q101607 |
The information in this article applies to:
SYMPTOMSBCP fails to load data into SQL Server when attempting to load data files including long text fields and a format file specifying the length of the text data to be greater than 255 bytes. Versions of BCP 4.2a and later fail without generating an error message. BCP 4.2 fails to load data and generate a "bcp_readfmt() failed" error. BCP version 1.11 loads the data, but the following error message appears:
operating system error: (null) DB-Lib error I/O Error while reading bcp data file CAUSEThe BCP utility does not handle format files specifying data field lengths of greater than 255 characters correctly.
WORKAROUNDA character mode bulk insert using appropriate field delimiters allows the data to be loaded using the BCP.EXE utility.
STATUSMicrosoft has confirmed this to be a problem in BCP versions 4.2 and 4.2a. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
Additional query words: Windows NT
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |