Sp_helpindex2

sp_helpindex2

As far as I recall the trigger to code sp_helpindex2 was that with the introduction of INCLUDE columns to indexes that was added in SQL Server 2005 the old way of viewing indexes using sp_helpindex was useless since Microsoft has not modified their procedure to support the recently added INCLUDE columns. I had therefore found myself, when tuning queries, scripting tables using SSMS just to view the indexes and to see the INCLUDE columns (and if existed at all).

Now, that did not feel quiet write and had led me to the idea of creating my own sp_helpindex which I named sp_helpindex2. Once the INCLUDE columns were added more ideas came in and the code has developed and grown to be what it had become today.

sp_helpindex2 exposes the indexes INCLUDE columns and far beyond. Check it and do not hesitate to post your comments back here.

-Yaniv

The following two tabs change content below.
Yaniv Etrogi is an SQL Server consultant. He loves SQL Server and he is passionate about Performance Tuning, Automation and Monitoring.

Leave a Comment

Your email address will not be published. Required fields are marked *