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
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Get Page

Author  Topic 

shapper
Constraint Violating Yak Guru

450 Posts

Posted - 2012-03-23 : 22:28:02
Hello,

I need to get, from a Posts table, a page of rows with PageIndex = 5 and PageSize = 20.

And if possible I need to get the total item count ...

How can I do this?

Thank You,

Miguel

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2012-03-23 : 22:43:06
check out row_number()


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -