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.
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.
Can the DataReader support multiple recordsets? 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...?
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...?
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.