Moving more than one record in datareader

N

Niraj Ranka

Hello,

Can we move more than one record in datareader ... or saying it can we
directly move to say 10th record in the datareader instead of going from 1
to 10th record using datareader.read() method.


Please review...

Niraj Ranka
 
P

Patrice

AFAIK no, the reader is a sequential read only forward only stream. If you
want to ignore lines you could just avoid to include them in the result set
by changing your selection criteria.

Patrice
 
W

W.G. Ryan eMVP

No - nor would you want to. If you need this functionality use a
DataTable/DataSet.
 

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