best way of fixing the glitch

  • i found a glitch in a sql db index frag job that was suppose to tell everyone that the indexes needed to be re-indexed

    unfortunately if was only doing the master database and was copied to over 200 servers over a 1 year ago

    So i looking for what method would be best

    drop recreate or rebuild online

    one server I was looking at had over 3 billion indexes rows

    or maybe there is a better way

  • Hi,

    I think it "depends" on you database. Have you checked the maintenance scripts from Ola Hallengren?

    There is a stored procedure to rebuild/reorg you index, depending on the fragmentation-level and on the size of the index.

    https://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html

    Kind regards,

    Andreas

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply