using sql server 2k sp2
using master.dbo.xp_cmdshell 'bcp ... ' I can output a query to a text file (csv) with only one problem. I need the values to be wrapped in quotes like this
I currently get
I am so close. Please tell me that there is a argument I am over looking!!
Thanks in advance
Kevin
using master.dbo.xp_cmdshell 'bcp ... ' I can output a query to a text file (csv) with only one problem. I need the values to be wrapped in quotes like this
Code:
"1","me","you"
"2","he","she"
Code:
1,me,you
2,he,she
I am so close. Please tell me that there is a argument I am over looking!!
Thanks in advance
Kevin