I want to export some SQL Server 2005 data to CSV format (comma-separated with quotes). I can think of a lot of complicated ways to do it, but I want to do it the right<
set nocount on
the quotes are there, use -w2000 to keep each row on one line.