Hi I want to query my database and return all the results as a string At the moment my code is like this
SqlDataReader DR = query.ExecuteReader();
while (DR.Read())
{
stringList.Add (DR.GetString(0));
}
With stringList being a list of strings, my question is how do I convert all results to a string. Thanks
SqlDataReaderhas aGetValuesmethod that will return an object array that you could easily join usingstring.Join