Iterate through all records isn't big problem in my case
because number of records returned is about to 1000.
And as I see it takes lower than 1 sec.
But I'am using SQL Server over internet and sending
this records is bigger problem. So I want to know
how many records is to send and does this operation should
be completed or not.
Do you know how count number of records to send
having select query?
Best regards
Konrad
"Miha Markic [MVP C#]" <miha at rthand com> wrote in message
Hi,
This not a good practice. Counting records has to iterate through all
records on server and you'll probably have to run one select for counting
and the other for returning the actual records.
Why don't you simply limit the select with TOP (or similar) clause?
--
Miha Markic [MVP C#] - RightHand .NET consulting & development
SLODUG - Slovene Developer Users Group
www.rthand.com
Hi
I have complicated select query
how to get prior number of records
returned from this query.
One number, to decide
if records should be loaded.
Thanks
Konrad