Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
I'm very interested in this discussion, as we tried to find a way to
do this a few years ago, and the best we could find was to do
something like:
SELECT COUNT(*) FROM (the-statement)
We tried the various diagnostic fields, and all either gave an
"estimated" count, or didn't return anything at all until you had
already read the result set.
Our goal was to create a scrollbar for a grid that we were loading
one page at a time from SQL. The count is needed to determine the
total size so that we can make the scrollbar show the position
accurately. But nothing we've tried has worked aside from doing a
COUNT() of the statement as a subselect, or reading the whole result
set twice (which isn't performant enough)
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.