Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling indexes for testing purposes
Message
De
19/03/2014 09:49:51
 
 
À
19/03/2014 09:40:29
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Indexation
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01596856
Message ID:
01596862
Vues:
41
>Try this (though it won't work if you disable a clustered index and then try to insert data....so I'd only recommend this for reading data)
>
>
>ALTER INDEX  [MyIndex] on [MyTable] DISABLE
> GO
>-- do your stuff
>
>ALTER INDEX  [MyIndex] on [MyTable] REBUILD
>
> GO
>
>
>I'm not aware of any way to re-enable an index...only way I know is to rebuild it.

This works. However, it will just keep bouncing back on other indexes until I disable them all. Is there a way to disable all the indexes on a table?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform