Unexpected EOF encountered in BCP

后端 未结 8 1698
无人及你
无人及你 2020-12-30 11:43

Trying to import data into Azure. Created a text file in Management Studio 2005. I have tried both a comma and tab delimited text file.

BCP IN -c -t, -r\\n -U -S

相关标签:
8条回答
  • 2020-12-30 12:14

    I will share my experience with this issue. My users were sending me UTF-8 encoding and everything was working fine. My load started to fail when they updated the encoding to Encode in UCS-2 LE BOM. Use notepad++ to check these setting.

    Reverting back to UTF-8 fixed my problem.

    This link helped me resolving my issue.

    0 讨论(0)
  • 2020-12-30 12:14

    I was facing the same error while trying to bcp in the records from datafile to table. A workaround which works is just open the file in Notepad++ or similar editor and add extra line at the end of the file.This worked for my case - field separator - |^|, row separator - new line (LRCF).

    Command used: bcp in -T -c -t"|^|"

    0 讨论(0)
提交回复
热议问题