some questions related to Ola hallengren maintenance scripts

Sam 1,476 Reputation points
2024-03-19T06:14:55.4033333+00:00

Hi All,

I have couple questions related to Ola Hallengren's maintenance script. If anyone has the answers, please do reply.

  1. In which order the rebuild and update stats run. Is it based on tables sorted by name or something else?
  2. Is there a way to tell how much % of work is left over or how much % of work is done?
  3. Can we pause/suspend index rebuilds or updating stats operation and resume as per need?

Thanks,

Sam

SQL Server | Other
{count} votes

Accepted answer
  1. Christoph Muthmann 181 Reputation points
    2024-03-19T08:25:41.0533333+00:00

    Hi Sam!

    1. It is based on objects sorted by database, schema and object_name.
    2. No, because the process does not know how much work has to be done or how complex the work could be.
    3. You can not pause the execution, but I believe you can kill the job/process at every moment. It is similar to killing an index rebuild which is started manually. Every time the job starts, it checks the index and column statistics to detect what has to be done. So every maintenance you have been done in the meantime shortens the job run.

    Kind regards,

    Christoph


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.