Blog do Ezequiel SQL Server Insights
Sorry for the inconvenience, but the content of this post moved to the Adaptive Index Defrag post.
FYI, so you don't reinvent the wheel, but there's already a very good solution at:
I've been using this for a few years now without issue.
Thank you for your feedback. The script you have indicated is indeed very good, no dispute there.
The fact is, because I have not found one out there that managed all I needed it to do, like stats update or disctinct ways to deal with partitions, amongst other things, I came up with one of my own and decided to share.