SQL Server BCP: How to put quotes around all fields?

前端 未结 7 932
星月不相逢
星月不相逢 2021-02-08 22:01

I have this BCP command:

\'bcp DBName..vieter out c:\\test003.txt -c -T /t\"\\\",\\\"\" -S SERVER\'

The output CSV I get does not put quotes ar

相关标签:
7条回答
  • 2021-02-08 22:39

    You need to use CHAR(34) for the quote. This page has more details: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=153000

    0 讨论(0)
提交回复
热议问题