Enumerating SqlDataReader column name

Joined
Apr 26, 2012
Messages
1
Reaction score
0
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

Top