http://www.sqlhacks.com/Administration/Row-Count-Inaccurate


DBCC updateusage (0) WITH count_rows;
go

  • If nothing is returned then the usage/indexes statistics are up-to-date.
  • Line 3: dbcc updateusage (0) updates the current database.
  • Line 3: with count_rows means that the row count column is also updated.
  • You need to have admin privileges to the database.

  •