Writing data to text file using BCP prompts for file storage type

帅比萌擦擦* 提交于 2019-12-02 07:58:35

I would guess the somewhere between your test environment and the client's environment's actual execution of the command that the "/n" is getting turned into a real new-line. Try putting the "-c" before the "-r" and see what happens.

There is no need to specify the record delimiter, so remove the -r\n. The -c option will use tab for columns and carriage return and line feed for records (same as specifying -t\t -r\r\n). Otherwise like the other poster stated, make sure the -c is specified first

Side note: I recommend that as a practice (not as a solution) that you output the format file using -f"yourpathandfilename.fmt". On the client side you use the -f param with import as well. This way if there is a difference between the source and target you can manually tweak the format file.

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