Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Table properties row count differs from sys.dm_db_partition_stats

$
0
0

 I run this query to see the rowcounts of all my tables

SELECT OBJECT_NAME(OBJECT_ID) TableName, st.row_count
FROM sys.dm_db_partition_stats st
WHERE index_id < 2
ORDER BY st.row_count DESC

For a particular table, its rowcount is listed as 131,000, but if I right-click on the table and view properties, SSMS says it has over 500K.  Maybe the statistics are off and need to be rebuilt?


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>