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
 Returning the page number of a certain record

Author  Topic 

mcoro
Starting Member

1 Post

Posted - 2010-09-30 : 23:07:55
hi!

To put it simply, is there a way that i can get the page number or index to where a certain record is included?

Given that Page Size, Record Id and Sort Direction are supplied as parameters.

Thanks in advance!

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-10-01 : 00:02:40
I think you can calculate it via modulo.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -