|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2002-03-11 : 00:43:54
|
| Harry writes "I have a problem importing data with the BCP utility.For many, many hours i have worked to find a way importing underneath data, but without any success.I have received the following data, which i need to import"0000000002","000000580","","","AG","","","","","","","","","","","","","","00006","ROLLINS HUDIG HALL SEQ 3, EFFE DATE 1995-11-23""0000000002","000000643","","","AG","","","","","","","","","","","","","","00006","ROLLINS HUDIG HALL SEQ 3, EFFE DATE 1995-11-23"Be aware that a comma can be found in the data of the last column.The field separator is a comma.Each column starts and ends with a double quote.This is the command i use:bcp ADB_database.dbo.table in d:\mssql7\Script\datas.txt -c -q -t "," -e d:\cerr.log -Uuser -Sserver -PpasswordI receive the error message:SQLState = 22001 NativeError = 0Error = [Microsft][ODBC SQL Server Driver]: String data, right truncationWe are using SQL Server version 7.0 with Windows NTThank you in advance.Harry van der TolThe Netherlands" |
|