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)

posted @ 2012-01-05 13:35  qanholas  阅读(192)  评论(0编辑  收藏  举报