Index Related Dynamic Management Views and Functions (Transact-SQL)
Name: sys.dm_db_column_store_row_group_physical_stats (Transact-SQL) Applies to: SQL Server 2016 (13.x) and later, Azure SQL Database, Azure SQL Managed Instance Description: Provides current rowgroup-level information about all of the columnstore indexes in the current database. Permission: Requires CONTROL permission on the table and VIEW DATABASE STATE permission on the database. Examples: Calculate fragmentation to decide when to reorganize or rebuild a columnstore index. For columnstore indexes, the percent of deleted rows is a good measure for the fragmentation in a rowgroup. When the fragmentation is 20% or more, remove the deleted rows. This example joins sys.dm_db_column_store_row_group_physical_stats with other system tables and then calculates the Fragmentation column as an estimate of the efficiency of each row group in the current database. To find information on a single table, remove the comment hyphens in front of the WHERE clause and provide a table name. SELEC...