Database Research & Development

  • Home
  • NoSQL
    • NoSQL
    • Cassandra
  • Databases
    • Database Theory
    • Database Designing
    • SQL Server Coding Standards
    • SQL Server
    • PostgreSQL
    • MySQL
    • Greenplum
    • Linux
  • Interviews
    • SQL Server Interviews
    • MySQL Interviews
    • SQL Puzzles
  • DBA Scripts
    • SQL Server DBA Scripts
    • PostgreSQL DBA Scripts
    • MySQL DBA Scripts
    • Greenplum DBA Scripts
  • Home
  • Blog Archives !
  • (: Laugh@dbrnd :)
  • Contact Me !
sqlserverinterviews
Home 2018 January SQL Server 2014: sys.column_store_row_groups to find information on Columnstore row groups

SQL Server 2014: sys.column_store_row_groups to find information on Columnstore row groups

This article is half-done without your Comment! *** Please share your thoughts via Comment ***

SQL Server 2014 introduced sys.column_store_row_groups system view for finding the information on the Columnstore row groups.

Using this system view, you can find information like total number of rows physically stored, and a column for the number of rows marked as deleted.

If you find a high volume of deleted rows, you should decide to rebuild it.

T-SQL Script:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
SELECT
OBJECT_NAME([csrg].[object_id]) AS TableName
,[i].[name] AS IndexName
,[csrg].[row_group_id]
,[csrg].[delta_store_hobt_id]
,[csrg].[state_description]
,[csrg].[total_rows]
,[csrg].[deleted_rows]
,[csrg].[size_in_bytes]
FROM sys.column_store_row_groups AS csrg
LEFT OUTER JOIN sys.indexes AS i
ON [csrg].[object_id] = [i].[object_id]
AND [csrg].[index_id] = [i].[index_id]
ORDER BY [TableName],[IndexName]
GO

Jan 10, 2018Anvesh Patel

Please visit other related articles...

  • SQL Server: Script to find the total size of the Indexes
  • SQL Server 2016: Drop table operation failed on table because it is not supported operation on system-versioned temporal tables
  • SQL Server 2014: Buffer Pool Extension to improve I/O throughput and Query Cache
  • SQL Server 2016: sys.dm_db_column_store_row_group_physical_stats to find fragmentation of Columnstore Indexes
  • SQL Server 2016: sys.dm_column_store_object_pool to find memory pool usage by Columnstore Indexes
  • SQL Server 2016: Columnstore Index on Memory Optimized In Memory OLTP Tables
  • SQL Server 2014: Introduced DBCC CLONEDATABASE TO generate only Schema and Statistics
  • SQL Server: T-SQL Script to Rebuild all Indexes of a Database
SQL Server 2012: SORT_IN_TEMPDB used to Improve the Index Rebuild PerformanceSQL Server 2016: sys.dm_column_store_object_pool to find memory pool usage by Columnstore Indexes
Anvesh Patel

Database Engineer

January 10, 2018 SQL Server, SQL Server DBA ScriptAnvesh Patel, Columnstore Index, database, database research and development, dbrnd, fragmentation, SQL Query, SQL Server, SQL Server 2014, SQL Server Administrator, SQL Server Monitoring, SQL Server Performance Tunning, SQL Server Tips and Tricks, sys.column_store_row_groups, TSQL
About Me!

I'm Anvesh Patel, a Database Engineer certified by Oracle and IBM. I'm working as a Database Architect, Database Optimizer, Database Administrator, Database Developer. Providing the best articles and solutions for different problems in the best manner through my blogs is my passion. I have more than six years of experience with various RDBMS products like MSSQL Server, PostgreSQL, MySQL, Greenplum and currently learning and doing research on BIGData and NoSQL technology. -- Hyderabad, India.

About DBRND !

dbrnd

This is a personal blog (www.dbrnd.com).

Any views or opinions represented in this blog are personal and belong solely to the blog owner and do not represent those of people, institutions or organizations that the owner may or may not be associated with in professional or personal capacity, unless explicitly stated.

Feel free to challenge me, disagree with me, or tell me I’m completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever (abusive, profane, rude, or anonymous comments) - so keep it polite.

The content of this website is protected by copyright. No portion of this website may be copied or replicated in any form without the written consent of the website owner.

Recent Comments !
  • Anvesh Patel { Sure will do... }
  • Anvesh Patel { Great... }
  • Anvesh Patel { Great... }
  • Anvesh Patel { Great... }
  • Anvesh Patel { Great... }
  • Anvesh Patel { Great... }
  • Anvesh Patel { Great... }
  • Older »
Follow Me !
  • facebook
  • linkedin
  • twitter
  • youtube
  • google
  • flickr
© 2015 – 2019 All rights reserved. Database Research & Development (dbrnd.com)
Posting....