Re: Table problem ?
- From: "Jens Süßmeyer" <Jens@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 14 Apr 2005 22:12:20 +0200
Try updating manually the statistics, perhaps the problem canbe found here:
http://groups.google.de/groups?q=update+statistics+sql+server&hl=de&lr=&selm=5OAzWbPWEHA.3468%40cpmsftngxa10.phx.gbl&rnum=1
UPDATE STATISTICS <Name>
HTH, Jens Süßmeyer.
---
http://www.sqlserver2005.de
---
"Joh" <joh@xxxxxxxxxxxx> schrieb im Newsbeitrag
news:e0H%234tSQFHA.2252@xxxxxxxxxxxxxxxxxxxxxxx
>I have one table which name is medicalhistory which structure is as
>follows.
>
> ID int
> TId int
> TableName nvarchar(100)
> FieldName nvarchar(100)
> Comm1 nvarchar(4000)
> Comm2 nvarchar(4000)
> CDate datetime
> SCDate datetime
>
> The problem is that when I use the following query like.
>
> select count(*) from medicalhistory
>
> It is continously running and doesn't give me any result, so I get the
> count
> from the following query
>
> select rowcnt from sysindexes where id = object_id('medicalhistory')
>
> 12819530
>
> There is no index in the above table and I also use the following command
> for consistency error.
>
> DBCC Checktable ('medicalhistory')
>
> Result:-
> DBCC results for 'medicalhistory'.
> There are 12819530 rows in 218027 pages for object 'medicalhistory'.
> DBCC execution completed. If DBCC printed error messages, contact your
> system administrator.
>
> Even when I use this command like
>
> select * from medicalhistory where ID = 523662
>
> It is continously running and doesn't give me any result
>
> Can any one give me his or her expert idea like this is the table
> corruption
> or what the problem is ?
>
> What I have to do now?
>
> Thanks in advance.
>
>
>
>
>
>
.
- Follow-Ups:
- Re: Table problem ?
- From: Joh
- Re: Table problem ?
- References:
- Table problem ?
- From: Joh
- Table problem ?
- Prev by Date: Re: Table problem ?
- Next by Date: table corruption I think so !
- Previous by thread: Re: Table problem ?
- Next by thread: Re: Table problem ?
- Index(es):
Relevant Pages
|
Loading