BUG: BCP IN of INT With Trailing Spaces May FailLast reviewed: May 1, 1997Article ID: Q137430 |
The information in this article applies to:
SYMPTOMSIn Microsoft SQL Server version 6.0, character mode BCP into an INT column where the source data has trailing spaces may fail with the error:
Attempt to convert data stopped by syntax error in source field. WORKAROUNDEliminate the trailing spaces from the source data, or use a 4.2x version of BCP and DB-Library.
STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server version 6.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONAn example of the problem would be a table with two columns INT and CHAR(5). BCPing a CSV file of the format:
1,testworks fine. However,
1 ,testfails because of the space trailing the "1".
|
Additional query words: sql6 windows nt syntax character
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |