SQL Server emergency? Email pinal@sqlauthority.com with URGENT in the subject line.

Unused Index Script: Find Indexes That Only Cost You Writes

This Unused Index Script lists nonclustered indexes that SQL Server keeps writing to and no query ever reads. It starts from the index list so untouched indexes are not missed, skips the risky ones, and writes the disable and recreate statements. A garden center orders table shows one update dropping from 5,011 pages to 6 once an unused index is disabled.

Continue Reading