DataReader Field Names

  • Thread starter Thread starter Paul Ilacqua
  • Start date Start date
P

Paul Ilacqua

Can you enumerate a data readers source fields names in VB.NET 2003 ?

Paul
 
I answed my own question sorry for the error.

Do While drSQL.Read()

For i = 0 To drSQL.FieldCount - 1

Console.WriteLine(drSQL.GetName(i) & " - " &
drSQL.GetOrdinal(drSQL.GetName(i)))

Next

Loop
 

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