This many not be something you can use in your application. This will be helpful during demonstrations of SQL Serve internals.
This sample code will tells you which row is in which page. Highlighted section has undocumented function.
1: USE tempdb2: GO3:4: CREATE table tblLoc5: (ID BIGINT IDENTITY,6: fld1 CHAR(1000) DEFAULT 'ABC',7: DATE1 Date DEFAULT GETDATE()8: )9:10: INSERT INTO tblLOC11:12: VALUES (DEFAULT,DEFAULT)13: GO 1000014:15: SELECT * FROM tblLOC T16: CROSS APPLY fn_PhysLocCracker (%%PHYSLOC%%) pl17:
Result of this is,
SlotId is the record id of the page.
No comments:
Post a Comment