Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 Other Topics
 How to check if format file is match the import file schema?

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-08-24 : 13:17:30
Lynn writes "OS: WIN2k
SQL Server 2000
Issued following command:
C:\Program Files\Microsoft SQL Server\80\Tools\Binn>bcp MSDatabase.dbo.myTable in d:\testdb\testdb.NS1 /f myTable.fmt /U MSDatabase /P Test /S MSServer
Error msg:
SQLState = S1000, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]I/O error while reading BCP format file

If the format file is bad, how to match it to the import data file?
This is my first 3 rows of format file:
8.0
138
1 SQLCHAR 0 10 "" 1 ROW_ID
2 SQLCHAR 0 9 "" 2 DUNS_NUM
3 SQLCHAR 0 90 "" 3 BUSINESS_NAME

My Import file
0366757631366757631Total Kenya Ltd
0366775880366775880Eskom Ltd"
   

- Advertisement -