Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling indexes for testing purposes
Message
From
19/03/2014 09:49:51
 
 
General information
Forum:
Microsoft SQL Server
Category:
Indexing
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01596856
Message ID:
01596862
Views:
40
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform