LawnBoy
MIS
- Mar 12, 2003
- 2,881
Please be gentle with a lowly SysAd who doesn't know enough about SQL to fill a thimble...
Users of one of my databases have been complaining about slow response when searching. One particular report is taking over 10 times as long as it did 6 months ago. I ran
against the database in question and it shows some serious fragmentation (one table's index has 337272 pages and shows 64.41% Logical Scan Fragmentation).
In researching BOL I think my best option would be to run an INDEXDEFRAG since I cannot take the database offline. However, BOL has an interesting statement:
Will I have to run INDEXDEFRAG against each of the non-system tables one at a time? (if so, please just shoot me).
Users of one of my databases have been complaining about slow response when searching. One particular report is taking over 10 times as long as it did 6 months ago. I ran
Code:
DBCC SHOWCONTIG WITH ALL_INDEXES
In researching BOL I think my best option would be to run an INDEXDEFRAG since I cannot take the database offline. However, BOL has an interesting statement:
The DB I want to defrag happens to have 20 tables listed as system (out of 412 tables). Does this mean that INDEXDEFRAG simply does not work on system tables or does it mean INDEXDEFRAG could screw up the system tables?BOL said:DBCC INDEXDEFRAG is not supported for use on system tables.
Will I have to run INDEXDEFRAG against each of the non-system tables one at a time? (if so, please just shoot me).