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

后端 未结 2 1312
离开以前
离开以前 2021-01-24 03:22

I\'m copying data from SQL to text file using bcp tool with following command:

    bcp.exe \"exec \" queryout \"temp.txt\" -T -r\\n -c
         


        
2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-24 04:00

    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.

提交回复
热议问题