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

 

 

相关文章: