Is there a script that I can use to activate and deactivate Indexes on a table
Jan 18 '12 at 03:49 AM
Jan 19 '12 at 02:45 AM
alter index [indexname] on [tablename] disable
Jan 18 '12 at 04:13 AM
Wilfred van Dijk
This mabe a silly question but how would I enable it again.
I assume you change the disable to enable like below but then I get a sytax error
alter index [indexname] on [tablename] enable
You need to Rebuild the index, to enable it again. Please see BOL for more help.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
Once you sign in you will be able to subscribe for any updates here
Answers and Comments
asked: Jan 18 '12 at 03:49 AM
Seen: 660 times
Last Updated: Jan 19 '12 at 02:45 AM
While reorganising the index for few indexs the defragmentation decraeses by 80%
Is there any alternative for like operators - for searching data
Is WHILE loop better than CURSOR?
Load Excel/Delimited files as tables in SQL server
How the indexes are managed?
T-SQL Linked Server Query to Stop a JOB and Start it again
Adding Values to a calander table
how to remove html tags from column values in table ???
Split string based on a pattern
Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.Ask SQL Server Central is a community service provided by Red Gate.