Get Index Health
mssql_db_index_healthAssess index health across one SQL Server database: review key and included columns, usage, fragmentation, size, fill factor advice, and suggested DROP, REBUILD, or REORGANIZE scripts.
Instructions
Index health for one database: every non-PK index with key and included columns, usage (never used, write-only), fragmentation, fill factor advice, size and a suggested DROP, REBUILD or REORGANIZE script to review. Reads index physical stats (LIMITED), which can be slow on very large databases; use mssql_table_index_health for a few tables.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| databaseName | No | Target database. Defaults to connected database. |