dbTalk Databases Forums  

large query

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss large query in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Aleks Kleyn
 
Posts: n/a

Default large query - 11-06-2006 , 11:26 PM






I have query from SQL server 2000 which returns from database very large.
However I show client only 20 records per page. I need to find way which
allows to get from database only what I need (like top 100). Response from
database about 10mins which is not acceptable.


Reply With Quote
  #2  
Old   
Arnie Rowland
 
Posts: n/a

Default Re: large query - 11-07-2006 , 01:35 AM






Look at this article for ideas about paging.

Paging Queries
www.aspfaq.com/2120


--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous

You can't help someone get up a hill without getting a little closer to the
top yourself.
- H. Norman Schwarzkopf


"Aleks Kleyn" <AleksKleyn (AT) OptOnline (DOT) net> wrote

Quote:
I have query from SQL server 2000 which returns from database very large.
However I show client only 20 records per page. I need to find way which
allows to get from database only what I need (like top 100). Response from
database about 10mins which is not acceptable.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.