Hi,
I have major problems after doing a SHRINKFILE on a SQL2K5 database. I
read all the articles that said that you shouldn't do it unless
absolutely necessary so was well aware of the risks, but had no choice
as there was no room on disk for the transaction log to grow, causing
major headaches with long running transactions.
The problem that I have is that all indexes are badly fragmented but a
REBUILD and a REORGANIZE is having no effect on them. The index
fragmentation has gone from 0.x to > 85% in most cases. Batch jobs
taking 20 minutes now take over 10 hours and performance has hit rock-
bottom.
When I came in on Monday morning after the SHRINKFILE (over the
weekend) and checked the index fragmentation it all still looked good
(0.x% etc). Once the overnight job on Monday evening pushed data into
the tables, fragmentation went up, but a REBUILD on the major indexes
seemed to help the job finish in a timely manner. However, Tuesday
night's batch job has pushed the fragmentation back up again and this
time, no amount of rebuilding or reorganizing has made any difference.
I've also tried creating new tables and copying the data from a table
with fragmented indexes into the new tables, then adding indexes
(before and after) to see if that fixes the problem but strangely
enough the fragmentation is exactly the same (> 85%) as on the
original table. Does this make sense?
Has anyone else come across this problem? Or any suggestions on how to
fix it?
Any help gratefully received
Many thanks,
F.