Wrox Programmer Forums
|
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 3rd, 2007, 02:45 AM
Registered User
 
Join Date: Sep 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default bcp error

i try to import file to database table but i get the error like this:

Error = [Microsoft][SQL Native Client]Unexpected EOF encountered in BCP data-file

below is the code i use:

C:\New Folder>bcp abc..NewCustomer in C:\test.cm -fc:\format.fmt -SEPPWKS01\SQLEXPRESS -Usa -Padmin

can anyone help me....
plz......

Thanks!
 
Old July 12th, 2007, 02:18 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Can you post your FMT descrition also the table structure here? FMT is very sensitive, even a minor mistake there will never let us successfully export/import data using bcp.

Sometimes it could be something wrong with the data file too, which contradicts with your FMT description. So you got to look at all possibilities.

With less info posted, except the error, I can't point out where you go wrong.

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
BCP Error lisa30 SQL Server 2000 5 October 11th, 2007 07:06 PM
BCP Error while importing data from a textfile happygv SQL Server 2000 5 October 6th, 2006 02:07 AM
Error exporting using bcp Pallen SQL Server 2000 0 July 29th, 2006 04:56 AM
bcp Danielk SQL Server 2000 3 June 12th, 2006 11:14 AM
BCP error while importing data from a text file happygv SQL Server ASP 1 December 15th, 2003 09:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.