G
Guest
I need some help determining the number of rows returned
by any data reader. Thank you in advance.
by any data reader. Thank you in advance.
There's no way to do that without walking through the reader. At best you
can find out if there are in fact rows with HasRows if you are using the 1.1
framework. Otherwise, you'll have to iterate through it and count the
iterations.
Mark Rae said:Can the DataReader support multiple recordsets?
Yes.
If so, is there no way it
can be done with ROWCOUNT or, at worst, sending a multiple query SQL string
where the first query does a SELECT COUNT(*)... and the second does the
actual SELECT...?
Or maybe this is a really stupid thought...???