Rebuilding the clustered index

  • What is the best way to rebuilding the clustered index? Is this cleaning up the space on the server?

  • I would change the recovery mode to 'Bulk logged' and then run dbcc dbreindex and then change back the recovery mode to Full

    this way you don't log those trn's and you log file doesn't grow and you don't have to shrink your log file size.

  • You shouldn't be using DBCC commands for index operations in 2005.

    As for the question at hand, what are you going for here? What is the best way to rebuild a clustered index .... during the day? off hours? least amount of contention? Running on enterprise? Based on fragmentation? What is your goal? If there are no considerations, than simply:

    ALTER INDEX [IndexName] ON [SchemaName].[TableName] REBUILD

  • Worth a read: Online Indexing Operations in SQL Server 2005

    http://www.microsoft.com/technet/prodtechnol/sql/2005/onlineindex.mspx

    Need to estimate the space for reindex, etc...

  • We always have people in the system,but I think would do on evening hours when less traffic. Thank you

  • yulichka (9/26/2008)


    We always have people in the system,but I think would do on evening hours when less traffic. Thank you

    Are you running on enterprise? If so, you can rebuild online.

  • Sorry to ask you a stupid question, how do I know if I am running on enterprise?Thank you

  • yulichka (9/26/2008)


    Sorry to ask you a stupid question, how do I know if I am running on enterprise?Thank you

    SELECT SERVERPROPERTY('Edition')

  • We are on Microsoft SQL Server Standard Edition (64-bit).Thank you

Viewing 9 posts - 1 through 8 (of 8 total)

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