olahallengren / sql-server-maintenance-solution

SQL Server Maintenance Solution
https://ola.hallengren.com
MIT License
2.91k stars 756 forks source link

PRINT when TimeLimit has been reached in IndexOptimize #799

Open paul-dube opened 8 months ago

paul-dube commented 8 months ago

In IndexOptimize there is a parameter @TimeLimit. It would be nice if there could be some feedback (PRINT) when the time limit is reached so that we know if the script completed because all indexes were optimized or because the time limit has been reached.

paul-dube commented 8 months ago

Maybe also a flag to throw an error when time limit is reached.