June 20, 2011 at 11:33 pm
Hi dudes,
I want to select my data by paging, I mean I want to select first top 10 (records 0 to 10) then second top 10 (records 10 to 20) ,etc from a query.
How can I do that?
Best Regards,
Ashkan
June 21, 2011 at 2:05 am
This great article by Paul White will help you:
http://www.sqlservercentral.com/articles/paging/69892/
-- Gianluca Sartori
June 21, 2011 at 9:37 am
Cool article. I'll be interested to see how the new ORDER BY...OFFSET in Denali stacks up against Paul's technique.
http://msdn.microsoft.com/en-us/library/ms188385(v=sql.110).aspx
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply