SQL script for rebuild/reindex indexes for Dynamics AX 2012 – Kurt Hatlevik – Dynamics 365 Blog

I often use my blog as a personal archive, and this post is for me to quickly find a script I use at customers that have not set up a proper SQL maintenance plan for indexes and statistics. This script will evaluate each index in the database, and determine if it should be reindexed or…
— Read on kurthatlevik.com/2013/12/14/sql-script-for-rebuildreindex-indexes-for-dynamics-ax-2012/