Bulk insert, Cannot bulk load. Unknown version of format file

跟風遠走 提交于 2019-12-24 22:19:49

问题


I'm having problems importing data exported using a more recent version of the bcp utility.

I need my exported data to be compatible with SQL server 2012.

It is my understanding that I need to add the -V110 option when exporting data.

However, even if I add the -V110 to the bcp command I always get version 12.0 (which is my bcp version) on the FMT file.

Here is a sample of my bcp call:

bcp [DB].[dbo].[Table1] format nul -c -f "E:\TMP\DATA\Table1.FMT" -V110 -S [SERVER] -t , -T

Does anybody know what am I doing wrong?


回答1:


I managed to solve this problem by installing Microsoft® Command Line Utilities 11 for SQL Server® and adding the bcp.exe location to the path variables. Now I can export version 11 using bcp 11. You can download it from here https://www.microsoft.com/en-us/download/details.aspx?id=36433



来源:https://stackoverflow.com/questions/50640505/bulk-insert-cannot-bulk-load-unknown-version-of-format-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!