SyntaxFix
Write A Post
Hire A Developer
Questions
There is a GetName function on the SqlDataReader which accepts the column index and returns the name of the column.
GetName
SqlDataReader
Conversely, there is a GetOrdinal which takes in a column name and returns the column index.
GetOrdinal