Skip to content

Commit 05105ef

Browse files
Fix - correct number of rows per table for tables with multiple partitions (#468)
Co-authored-by: Jan Declercq <[email protected]>
1 parent 8d72ce1 commit 05105ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SqlWatch.Monitor/Project.SqlWatch.Database/dbo/Procedures/usp_sqlwatch_logger_disk_utilisation_table.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ select
5151
table_name = t.name,
5252
database_name = sdb.name,
5353
database_create_date = sdb.create_date,
54-
row_count = convert(real,avg(p.rows)),
54+
row_count = convert(real,sum(p.rows)),
5555
total_pages = convert(real,sum(a.total_pages)),
5656
used_pages = convert(real,sum(a.used_pages)),
5757
/* only take table compression into account and not index compression.

0 commit comments

Comments
 (0)