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

  • spongemagnet

    SSCrazy

    Points: 2812

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


    -Ken

  • sandy_1006

    SSC Eights!

    Points: 873

    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

  • akljfhnlaflkj

    SSC Guru

    Points: 76202

    This is a useful script, thanks.

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

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