BCP "select col1+','+col2+','+col3 from dbo.table" queryout c:\temp\file.csv -c -T
exec xp_cmdshell ''bcp "select col1+','+col2+','+col3 from dbo.table" queryout c:\temp\file.csv -c -T''