find the physical location for specified data row

CREATE TABLE TEST (c1 INT IDENTITY, c2 CHAR (4000DEFAULT 'a');
GO
INSERT INTO TEST DEFAULT VALUES;
INSERT INTO TEST DEFAULT VALUES;
INSERT INTO TEST DEFAULT VALUES;
GO
create index index1 on test(c1)

SELECT sys.fn_PhysLocFormatter (%%physloc%%AS [Physical RID]* FROM TEST;
GO

SELECT sys.fn_PhysLocFormatter (%%physloc%%AS [Physical RID]* FROM TEST with (2)

 

 

http://www.sqlskills.com/BLOGS/PAUL/post/SQL-Server-2008-New-(undocumented)-physical-row-locator-function.aspx

 

 

posted on 2008-12-11 14:41  stswordman  阅读(2413)  评论(0编辑  收藏  举报