Dean L. Howen <co*****@hotpop.com> wrote:
--> if I want to get both the "resultset" and count affected rows. How can?
I must fetch to the end row and count ? another way?
No, there basically isn't another way. I asked the same thing in a Java
newsgroup a long time ago, and was shocked by the answer :(
Any time you ask for a number of rows, that information can be out of
date by the time you get the answer back. You could do a query which
returned two resultsets, one containing just the count and one
containing the actual data - but you need to be ready for there to be
more or fewer rows in the actual data than the count suggests...
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too