I was reading some or another question on Stack Overflow today, and someone happened to reference the SqlDataReader.GetFieldValue method. It’s a generic method that returns the value of a column, given its 0-based ordinal value. using (var conn = new SqlConnection("yourConnectionString")) { using (var cmd = new SqlCommand("SELECT name,

Read More