One question about sys.dm_db_partition_stats managment view.
I have used it to retrieve number of rows for tables in my database. It is working well, but there is problem with some tables that return row_count different from value that I get running SELECT COUNT(*) FROM [table].
In MSDN there it is clearly noticed that row_count on sys.dm_db_partition_stats DMV is approximate value, but there is no info on that when and how sys.dm_db_partition_stats DMV is updated, and I don't know how to make it to return exact (accurate) number of rows (without COUNT(*) - I don't want to use that - it is slow).
I have none of concurent transactions running on that table (in matter of fact I don't have any transactions running at all) when I ran query on sys.dm_db_partition_stats. Server version is SQL EXPRESS 2008 R2, running on localhost - just localy)
Please give some info how can I update information on that DMV, when this DMV info is updated and what do you think is happening here.
Thnx
if (helpful) then Vote();