Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Show valuable info from sysindexes

By Rodrigo Acosta,

This sp (sp_sysindexes) captures important columns from the table sysindexes and translates the numeric values into text. It shows the owner.object, the filegroup which it belongs to, the type of index, the total number of pages for tables/clustered indexes and non clustered indexes. It also shows the status, the indid and the type of object.
You can execute it within any database or specify the database.
If you specify an option, the sp can also generate a log file with its result.

example: sp_sysindexes 'northwind', 'Y'

Total article views: 3588 | Views in the last 30 days: 10
 
Related Articles
FORUM

Noncluster at sysindexes

Noncluster at sysindexes

FORUM

Noncluster at sysindexes

Noncluster at sysindexes

FORUM

Errors on SYSINDEXES

SQL2000, errors 8929,8928,8939,8965,8964 on SYSINDEXES

FORUM

Table not showing PK - PK is in sysindexes ?

Tables missing indexes but there seem to be entries for the indexes already in sysindexes ?

FORUM

object_name(id) returning Null

sysindexes

 
Contribute