Reindex all indexes online or offline depending on day of week.

  • Comments posted to this topic are about the item Reindex all indexes online or offline depending on day of week.


    -Ken

  • hi Ken,

    Mine is production environment ,EnterpriseEdn SQL Server2005 instance is running.

    Fragmentation of tables(both heap and non heap) indexes in one of databases(App 10GB in size) is so high, that it shows above 90%fragmentation

    Please do suggest or help me literally 🙁 as to how to go ahead and do the index rebuilding online with out affecting the services.

    Also i have queries whiel doing rebuilding :-

    What happens if a table has more than one index?

    Also if the tables have dependancies?

    Also do i need to disable clustered/nonclustered indexes of table while rebuilding.

    attached Here with the sample data of fragmentation

    Thanks in Advance,

    Sandy

  • This is a useful script, thanks.

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

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