Error = [Microsoft][ODBC SQL Server Driver]Unexpected EOF encountered in BCP data-file

  • I am using bcp for bulk copying but its giving above mentioned error message.

  • I would suggest the following checks:

    1. make sure there is a line terminator after the last line of the BCP file.

    2. make sure the columns of the BCP file match the actual structure of the file.

    If you could post the bcp file, I might be able to help more.

    "Any fool can write code that a computer can understand. Good programmers write
    code that humans can understand." -Martin Fowler et al, Refactoring: Improving the Design of Existing Code, 1999

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply