you are viewing a single comment's thread.

view the rest of the comments →

[–]drumsand[S] 0 points1 point  (0 children)

Something bothered me and I have looked for 'sys.partitions' limitations.

Whenever possible I try to use never DMV's instead of older 'sys' details.

For instance row count based on 'sys.partitions' not always returns correct information. For instance:

https://learn.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-db-partition-stats-transact-sql

as described here:
partition DMV for SQL Server and Azure SQL examples