Unexpected EOF encountered in BCP data-file

后端 未结 1 2008
无人共我
无人共我 2021-01-16 07:25

I was trying copy data from a table to another table in another database using bcp.

First a format file was created using

!! bcp dbName1.dbo.tableNam         


        
相关标签:
1条回答
  • 2021-01-16 07:28

    The problem was with format specifiers (-c, -n) while creating Format-file and Data-file.

    The format specifier for Format File (-n) and Data File (-c) was different.

    When I changed format specifier of both to either -c or -n, the import statement worked.

    Since retaining datatype of columns was important for my purpose, -n was used for format file and data file

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