Damn, this is so much easier in a form...Anyone know how to export from a DataSet to Csv file in a console application?
string sp = "SLA2Day";
var outCsvFile = @"C:\Download Report Sheets\file.txt";
SqlCommand spcmd = new SqlCommand(sp, thisConnection);
spcmd.CommandType = CommandType.StoredProcedure;
DataSet dsData = new DataSet();
DataTable dt = new DataTable();
SqlDataAdapter da = new SqlDataAdapter(spcmd);
thisConnection.Open();
da.Fill(dsData);