• This solution allows you to set a duration for how long you want the index job to run. It will finish the index it is working on when it reaches the duration, and then stop the job:

    SQL Server Index and Statistics Maintenance

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato