rebuild and reorganize using maintenance plan

  • hi there!

    i want to create two maintenance plans wich one of them is doing rebuild for all of my DB's in my instance and the other one is doing reorganize.

    now, when i trying to, i have been noticed that it is not that easy as SQL Server 2005-

    there is only option to reorganize but not to rebuild.

    can anyone help me with this?

  • When you are creating the maintenance plan in SQL 2000 Enterprise Manager the "Reorganize data and index pages" option under the Update Data Optimization Information, is a little tricky.

    When you finish creating the Maintenance Plan, you will not that a job named "Optimization....". When you run this job, it in fact does DBCC DBREINDEX with specified fill factor.

    Please try it on a test server.

    Pradeep Adiga
    Blog: sqldbadiaries.com
    Twitter: @pradeepadiga

  • so how do i reorganize?

  • If you're rebuilding indexes you don't need to reorganise as well.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • and why is that?

  • Reorganise shuffles the index pages into order. Rebuild drops the index and recreates it with the pages in order. Why would you want to do both?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

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

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