PRB: BCP Truncates Data when Data Length Is Too LongLast reviewed: April 28, 1997Article ID: Q96777 |
The information in this article applies to:
- Microsoft SQL Server Programmer's Toolkit, version 4.2
SYMPTOMSWhen attempting to use the Bulk Copy Utility (BCP) to load data into SQL Server using character mode, the following error message may be displayed:
DB-Library error: Attempt to bulk-copy an oversized row to the SQL Server.However, all data appears to have been loaded, and the BCP error file is empty.
CAUSEVersion 4.2 of BCP will generate the above message when the length of a character string exceeds the allowable length of the field. The data will be loaded, but characters exceeding the maximum field length will be truncated.
WORKAROUNDIt is important that you compare the data file and the table to ensure that the truncated information is of no value. If the data is important, you will need to take steps to recreate the table, allowing for a larger character field.
|
Additional query words: /c
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |