December 20, 2007 at 12:06 pm
Hi ,
I have a table on sql 2000 which has 3 non-clustered indexed.
when I use Management studio(2005) to check table property by right clicking on table and select property, I found that the index space for this table is -65.83 MB data space is 297.11 MB and there are 686943 rows
(kind of a big table).
My question is the space for index is a negative number, what does it mean, is it correct?
I ran the dbcc indexdefrag, dbcc dbreindex and the index space was even negative (-85.44MB) but the performance was better.
Also I ran dbcc showcontig both before reindex and after reindex but it gave me exactly same result/information. and it sayed
- Extent Scan Fragmentation ...................: 78.02% (even after I ran defrag).
This is confusing, can anybody explain?
Thanks!
December 20, 2007 at 12:22 pm
Rebuild the index, and it should have a clustered index on it. Likely it's just bad data.
December 20, 2007 at 12:57 pm
Run sp_updateusage
Edit: Correction, that should be DBCC UPDATEUSAGE. Sorry
DBCC UPDATEUSAGE ('DB name','Table name');
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 20, 2007 at 1:02 pm
GilaMonster (12/20/2007)
Run sp_updateusage
THAT would be the ticket...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 21, 2007 at 6:59 am
Hi All,
Thanks for all your help!
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply