Home Forums SQL Server 2008 SQL Server 2008 - General Export to CSV? RE: Export to CSV?
ahthomas
Ten Centuries
Points: 1382
More actions
January 2, 2013 at 9:20 am
#1572936
Cool. I agree, no need to re-invent anything.
So this should suffice for the csv export?
xp_cmdshell "select col1,col2,col3 from table" -oc:\myfile.csv -h-1 -s",