I/O error while reading BCP format file

a 夏天 提交于 2019-12-23 08:49:44

问题


Today I created a new staging table and a BCP .fmt file. I created some test data and attempted to run the BCP utility from the command line:

I've got about 20 different format files and staging tables from previous work and this is the first time I have encountered this error.

How can I fix this error?

Please note, I have added my solution below, but if you have other answers, please add them in. The answer was so quirky/obscure that I think it may help others.


回答1:


Basically, this one was really strange. In order for it to work, make sure there is an empty line after the last column defined in the format file. I added an extra empty line, resaved the file, and then the BCP utility ran the file successfully. I've indicated the extra line with a red rectangle.



来源:https://stackoverflow.com/questions/9948130/i-o-error-while-reading-bcp-format-file

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