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 2005 Forums
 SQL Server Administration (2005)
 get page number

Author  Topic 

namcanh
Starting Member

2 Posts

Posted - 2007-12-19 : 01:35:52
Hi, I need to get page number of a data row. Does SQL Server 2005 support it? Please help me

Thanks

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-12-19 : 03:08:08
With the new ROW_NUMBER function you can accomplish this.
Or do this with ADODB at front end.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

namcanh
Starting Member

2 Posts

Posted - 2007-12-19 : 04:12:19
Thanks for your reply, but I think you misunderstood my problem.

I need to get page number in file that a data row in a table is stored, it's not order in a table. Can you help me?

Thanks
Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-12-19 : 04:18:26
You can use DBCC PAGE command.

For more info, see this: http://blogs.msdn.com/sqlserverstorageengine/archive/2006/12/13/More-undocumented-fun_3A00_-DBCC-IND_2C00_-DBCC-PAGE_2C00_-and-off_2D00_row-columns.aspx

Also see this: http://www.nigelrivett.net/SQLAdmin/PageStructure.html

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page
   

- Advertisement -