Enumerating SqlDataReader column name

  • Thread starter Thread starter A.M
  • Start date Start date
Try

for col As Integer = 0 To SqlReader.FieldCount - 1 Console.Write(SqlReader.GetName(col).ToString())
Next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top