I am trying to import into SQL a text file using this BCP command:
bcp test.dbo.bcp2 in C:\\Test\\test.txt -c -t -SSQServer -U user -P test1 -t \\t -r\\n -e C:\\Test\\error.txt
The text.txt file has \\t as column delimiter and \\n as row delimiter.
The error received is Unexpected EOF.
I can confirm that the SQL table has the right table definition so there should not be any conversion errors.
i think no need to put any delimiter have text which is well arranged example if you have data in the excel copy and paste it in the text file and run the command
BCP tablename in c:\\test.txt -S server name -Uuserid -Ppassword -c
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.