Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Wrong Record Count
The number of rows shown in SELECT COUNT(*) statement is different from the
number displayed on table property. I know the number returned by select
statement is correct. How do I correct it? I have tried DBCC CHECKDB with
 REPAIR_ALLOW_DATA_LO
SS option.



Report this thread to moderator Post Follow-up to this message
Old Post
eAW
10-28-05 06:23 PM


Re: Wrong Record Count
eAW  wrote:
> The number of rows shown in SELECT COUNT(*) statement is different
> from the number displayed on table property. I know the number
> returned by select statement is correct. How do I correct it? I have
> tried DBCC CHECKDB with  REPAIR_ALLOW_DATA_LO
SS option.

That information is not kept real time. You can try using DBCC
UPDATEUSAGE to update those stats.

--
David Gugick
Quest Software
www.imceda.com
www.quest.com


Report this thread to moderator Post Follow-up to this message
Old Post
David Gugick
10-28-05 06:23 PM


Re: Wrong Record Count
how about running DBCC UPDATEUSAGE

----------------------------------------------------------------------------
--------------
"I sense many useless updates in you... Useless updates lead to
fragmentation...  Fragmentation leads to downtime...Downtime leads to
suffering..Fragmentation is the path to the darkside.. DBCC INDEXDEFRAG
and DBCC DBREINDEX are the force...May the force be with you" --
http://sqlservercode.blogspot.com/


Report this thread to moderator Post Follow-up to this message
Old Post
SQL
10-28-05 06:23 PM


Re: Wrong Record Count
What prompted you to run  REPAIR_ALLOW_DATA_LO
SS?

--
Paul Randal
Dev Lead, Microsoft SQL Server Storage Engine

This posting is provided "AS IS" with no warranties, and confers no rights.

"eAW" <anwang@mailcity.com> wrote in message
news:Oj93xQ%232FHA.3276@TK2MSFTNGP10.phx.gbl...
> The number of rows shown in SELECT COUNT(*) statement is different from
> the number displayed on table property. I know the number returned by
> select statement is correct. How do I correct it? I have tried DBCC
> CHECKDB with  REPAIR_ALLOW_DATA_LO
SS option.
>



Report this thread to moderator Post Follow-up to this message
Old Post
Paul S Randal [MS]
10-29-05 01:23 AM


Re: Wrong Record Count
Paul S Randal [MS]  wrote:
> What prompted you to run  REPAIR_ALLOW_DATA_LO
SS?
>

I assume the OP thought this information was always kept up to date.

--
David Gugick
Quest Software
www.imceda.com
www.quest.com

Report this thread to moderator Post Follow-up to this message
Old Post
David Gugick
10-29-05 01:23 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 03:05 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006