Clustered columnstore index rebuild script–updated
Recently I published a series of blog posts that provided scripts for rebuilding clustered columnstore indexes.
Niko Neugebauer sent me a suggested update to the latest version of those scripts and it makes sense. The change will help to filter out row groups that are not compressed and Niko noted that as Microsoft have started to include more objects (like Tombstone values) into sys.column_store_row_groups in Azure SQLDatabase, he believes that will help to prevent future SQL versions having a problem with the scripts.
2015-01-31