Enable and disable all indexes in a database — Carra Lucia Ltd


Disabling indexes is a good idea when it comes to loading large quantities of data, but… the big problem is clustered indexes. If you disable a clustered index, you’ve disabled the entire table. Several options suggest themselves, and none of them are simple. 1) Loop through the system views (sys.indexes), extract the table and index […]

via Enable and disable all indexes in a database — Carra Lucia Ltd

Advertisements