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,625 reads

Blogs

Our SQL Server 2019 Administration Inside Out Fun Author Survey

By

SQL Server 2019 Administration Inside Out Honored again to be leading the talented SQL Server...

What's New in SQL 2019? at the Data Architecture Virtual User Group and Q&A followup

By

Thanks to all 180+ of you who joined the Data Architecture Virtual User Group...

My home office setup

By

That aging hippie (he likes Apple products and has a goatee) known as Brent...

Read the latest Blogs

Forums

Trigger for only updating specific column

By sizal0234

Hi, using Merge I can sync table A with Table B at ROW level....

SQL Server Licencing Question

By GRE (Gethyn Ellis)

This question is about SQL Server Licencing and licencing for Maximum Virtualisation. I'm curious...

Error converting data type varchar to float

By Mark Eckeard

All, I know this topic has been discussed numerous times and I tried all...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers