Size of a dataset or OledbDataReader

  • Thread starter Thread starter clark
  • Start date Start date
C

clark

Is there any way, other than cycling thru, to get the
number of rows in a dataset and/or the number of rows in
an oledbdatareader?

thanks
 
To get the number of rows in a particular table of the dataset:

myDataSet.Tables("MyTable").Rows.Count

For the datareader, you would have to cycle through it.

I highly recommend you look up the documentation on these objects.
 

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