且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

SQL Server BCP 导出损坏的文件?

更新时间:2023-01-30 12:19:20

好的所以我解决了这个问题.必须使用 -f 和文件路径添加格式文件.它可以通过运行 bcp 不带任何格式创建并命令它保存格式文件到磁盘.那么我们就可以使用这个格式文件,这样就不再需要回答那些问题了,而且文件本身没有额外的数据,可以毫无问题地打开

OK so i solved the issue. Format file has to be added using -f and path to the file. It can be create by running bcp without any format and order it to save format file to disk. Then we can use this format file so its no longer needed to answer those questions, and file itself has no additional data and can be opened without problems