Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to repair table row count of 0

Status
Not open for further replies.

jpm3

IS-IT--Management
Apr 28, 2003
17
US
Has anyone seen a table row count property go to 0? (Enterprise manager, right-click on a table, and choose properties).

It is some kind of damage that occurs, causing queries to ignore indexes and use table scans. We haven't found any information on this - let alone how to repair it!

Replies are greatly appreciated!!
 
What hapens if you query the table?

Have you tried update statistics?
or
dbcc updateusage with count_rows

Rob
 
Thanks Rob, this worked:

dbcc updateusage (database, tablename) with count_rows

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top