Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DBCC Page

Status
Not open for further replies.

seekwall

Programmer
May 14, 2001
41
GB
Does anyone know of an intuitive algoritm (text) that I can use to write a procedure that strips out the Page Id from the first field in sysindexes ? I need this in order to be able to use DBCC Page

There is no info in BOL, and the hard copy books I have seem to contradict each other.

Thanks in Advance
 
Have you tried a simple select statement?

SELECT id FROM sysindexes WHERE name = 'table_name'

-SQLBill
 
I need to be able to convert the Hexadecimal values from the first field in sysindexes to the decimal values of the File and page address. The first field (I believe) references the first page within a table

This hasn't got anything to do with object ID's
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top