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)

Find the size of all Indexes in a database

By Bodhisatya Mookherjee,

Continuing with my interest with Indexes, I wrote this script to find the size of all indexes in a database along with the table and the filegroup on which the index resides. I have used the AdventureWorks2012 database as an example. Please replace the DB name for which you want to find the information. The output of the script as below.

Total article views: 1585 | Views in the last 30 days: 3
 
Related Articles
FORUM

index

index

FORUM

Index

Index

FORUM

Index

index

FORUM

Indexes

Clustered Index and Nonclustered Index

Tags
filegroups    
indexing    
size of indexes    
 
Contribute