List all indexes with keys, description and size

This script combines functionality of sp_helpindex and sp_spaceused to list all tables with individual indexes, their keys and description  (sp_spaceused cannot do that) and size in MB per individual index (sp_helpindex cannot do that either). Feel free to use and modify as you see fit. Hope it can help.

5 (9)

2007-07-03 (first published: )

2,627 reads

Blogs

Daily Coping 27 Nov 2020

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Daily Coping 26 Nov 2020

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Azure SQL Database – Greatest and Least TSQL

By

Being in the cloud does have many benefits, from lower administration to fast scaling...

Read the latest Blogs

Forums

SQL permissions based on multiple AD Groups

By pfranks 18140

Hi I'd like some input on the best way to handle setting permissions in...

The TUF File

By Steve Jones - SSC Editor

Comments posted to this topic are about the item The TUF File

Delivering Patches Quickly

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Delivering Patches Quickly

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers

Question of the Day

The TUF File

See possible answers