I am using OleDbDataReader to access the data and I have following codes to count number of records.
Opendb()
Do While (myReader.Read())
Counter += 1
Loop
closedb()
These steps slows down the process.
I have to use this count somewhere else with opendb function. Is there a count property or some other suggestion? so that I can count number of records or rows.
Thanks in advance.
Opendb()
Do While (myReader.Read())
Counter += 1
Loop
closedb()
These steps slows down the process.
I have to use this count somewhere else with opendb function. Is there a count property or some other suggestion? so that I can count number of records or rows.
Thanks in advance.