SQL Server: Script to find Index Average Fragmentation in Percentage

In this post, I am sharing one T-SQL script to find average percentage of index fragmentation in SQL Server.

When we are not getting the desired performance of the index, we should check the average percentage of Index Fragmentation.
The non – clustered index data is stored into different pages and there are 100% chance of fragmentation.

I have prepared one script to find index fragmentation and after that we should execute INDEX REBUILD or INDEX REORGANIZE on highly fragmented indexes for defragmentation process.

Please share your ideas and opinions about this topic with me, your contribution will add true value to this topic.
If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.

If you like this post, then please share it with others.
Please follow dbrnd.com, I will share my experience towards the success of Database Research and Development Activity.

I put up a post every day, please keep reading and learning.
Discover Yourself, Happy Blogging !
Anvesh M. Patel.

More from dbrnd.com

Leave a Reply

Be the First to Comment!

Notify of