By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,856 Members | 2,163 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,856 IT Pros & Developers. It's quick & easy.

Rows in a table

P: n/a
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.

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.