Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 fetch 1001 to 2000 rows

Author  Topic 

prashweenet
Starting Member

1 Post

Posted - 2005-10-30 : 22:59:39
Hell All
1 fetch -- 0 -1000 rows
2 fetch -- 1001 -2000 rows
1 fetch -- 2001 -3000 rows
1 fetch -- 3001 -4000 rows
so no

I am really dying to have a sql statement to fetch like this manner...

i know using TOP keyword to fetch first 1000 but how can i fetch the next
1000 .
Thanks in advance

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-10-30 : 23:27:54
Refer these pagination techniques

http://weblogs.sqlteam.com/jeffs/archive/2003/12/22/672.aspx
http://www.aspfaq.com/show.asp?id=2120


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2005-10-31 : 12:15:55
...And dont use cursors
Go to Top of Page
   

- Advertisement -