DataReader Field Names

  • Thread starter Thread starter Paul Ilacqua
  • Start date Start date
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
 
Back
Top