December 21, 2004 09:21 PM

Index Internal Information

Discover the facts about your index and table layouts
Rating: (0)
SQL Server Magazine
InstantDoc ID #44572
The sysindexes system table contains information about your index structures that you can't get through information schema views. Every database has a sysindexes table, which contains one row for every index and one row for every column-based statistics on a table. In general, Microsoft recommends that you don't retrieve data directly from this table, but there's no other way to obtain some of the information it contains. You can derive some of the index properties from the INDEXPROPERTY() function, but not all of them, as I mentioned in my December column, "Digging Up the Dirt on Indexes," InstantDoc ID 44002.

One...

...This article is for paid Professional Members only.

Already a Professional Member? Please log in now:

NOT A PROFESSIONAL MEMBER? YOU CHOOSE:

Professional Membership

Monthly

Annual

VIP Membership

Monthly

Annual

Add a Comment

Note - these (undoc'ed) techniques won't carry over to Yukon. In particular, sysindexes can't handle Yukon partitioning, so columns like first, root, and FirstIAM will be NULL for partitioned indexes. Also indid=255 won't exist in Yukon anymore. All of this will be doc'ed in Yukon's RTM BOL.

Regards,
Cliff Dibble (MSFT - SQL)

Anonymous User 12/28/2004 1:12:41 PM


You must log on before posting a comment.

Are you a new visitor? Register Here
GOOGLE LINKS
SPONSORED LINKS
FEATURED LINKS