karthik (ka***********@gmail.com) writes:
I have an interesting problem - I get a different number of rows for
the number of rows in a table when I double click the table name in EM
and when I run a select count(*) from <tablename> in QA.
Can somebody tell me why this is happening? The numbers are off only by
a few hundreds though.
I rarely use EM, and even more rarely double-click tables in it, but
I doubt that the double-click performs a SELECT COUNT(*) - this could
take a long time on a hundred-million row table! I would guess that
EM reads sysindexes.rows which is an estimate which is not necessarily
update to date. You can bring it update with DBCC UPDATESUAGE.
--
Erland Sommarskog, SQL Server MVP,
es****@sommarskog.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp