Jimbo99999
asked on
VB.Net - DataReader Looping
Good Day Experts!
What is your preference to looping through a DataReader?
I have seen:
While reader.Read()
End While
**************************
With reader
.Read()
Do While .HasRows
Loop
End With
What are the pros/cons if any between the 2?
Thanks,
jimbo99999
What is your preference to looping through a DataReader?
I have seen:
While reader.Read()
End While
**************************
With reader
.Read()
Do While .HasRows
Loop
End With
What are the pros/cons if any between the 2?
Thanks,
jimbo99999
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER