I normally use DataSet because It is very flexible. Recently I am assigned code optimization task , To reduce hits to the database I am changing two queries in
DataSet
I built on Pranay Rana's answer because I like keeping it as small as possible.
string rslt = ""; using (SqlDataReader dr = cmd.ExecuteReader()) { do { while (dr.Read()) { rslt += $"ReqID: {dr["REQ_NR"]}, Shpr: {dr["SHPR_NR"]}, MultiLoc: {dr["MULTI_LOC"]}\r\n"; } } while (dr.NextResult()); }