Quantcast
Viewing all articles
Browse latest Browse all 1849

Disable Column Store Indexes for One Database

Disabling column store indexes needs to be done time to time. Following query will generate the script. 

SELECT'ALTER INDEX ['+ Name ++'] ON '+OBJECT_NAME(object_id)+' DISABLE'
FROMsys.indexesWHERETYPE_DESC
LIKE'%COLUMNSTORE%'

Output of the query is shown below.

ALTERINDEX [IndFactResellerSalesXL_CCI] ON FactResellerSalesXL_CCI DISABLE
ALTERINDEX [NonClusteredColumnStoreIndex-20160622-204327] ON DimEmployee DISABLE
ALTERINDEX[NonClusteredColumnStoreIndex-20160622-210321] ONFactInternetSales DISABLE
Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 1849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>