Number of Rows Returned...

  • Thread starter Thread starter William Ryan
  • Start date Start date
W

William Ryan

You can use Datatable.Rows.Count on a DataTable

if you use a DataReader, the closest thing I can think of
is something like Dim i as Integer

While dataReader.Read
i+=1
End While

Hope this helps

Good Luck,

Bill
 
Thanks, I'm really kind of mystified as to why MS wouldn't have included
this as part of DataReader. But oh well... Perhaps I'll have to look into
Datatable as an alternitive to DataReader.

Carlo
 

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