I have tried the following code
DataTable dt = new DataTable(); SqlDataAdapter sA = new SqlDataAdapter( cmdQ); sA.Fill(dt); // dt.Load(reader); StringBuilder sb