Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
  Database
Automation
OS/Networking
Graphics
Links
Tools
» Regular Expr Tester
» Free Tools


I was getting the follwoing error when used BCP format file.

sql state s1000, native error=0
Error=[Microsoft ][odbc sql server driver] I/O error while reading BCP file format


I was sure that I used a correct BCP file format as shown below.

I used a format file shown as below.

Format file

8.0 
3 
1    SQLCHAR    0   10   ","       1    col1
2    SQLCHAR    0   12   ","       2    col2
3    SQLCHAR    0   10   "\r\n"    3    col3

Solution

This error occurs when you are missing a final newline in the format file.
Make sure you have a carriage return on the last line.

1. Open the format file in Notepad.
2. Move the cursor to the end of the file.
3. Press the Enter key to move the cursor down to a new line.
4. Save the format file.


Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (893) submissions by this author  (Birth Date : 7/14/1981 )


Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.