Unexpected EOF encountered in BCP

后端 未结 8 1755
无人及你
无人及你 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:00

    I think most of us prefer real-world examples than syntax hints, so here's what I did:

    bcp LoadDB.dbo.test in C:\temp\test.txt -S 123.66.108.207 -U testuser -P testpass -c -r /r

    My data was an extract from a Unix-based Oracle DB which was tab delimited and had an LF end of line character.

    Because my data was tab delimited I did not specify a -t parameter, the bcp default is tab.

    Because my row terminator was a LineFeed (LF) character, then I used -r /r

    Because my data was all being loaded into char fields I used the -c parameter

提交回复
热议问题