问题
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