I inherited a SQL server and the performance is not the best. I noticed that the front end app that uses the database moves data between several tables when it starts each morning and then runs a shrink on the database. It looks like there is a weekly maintenance task that rebuilds indexes and then runs a shrink on the weekend as well!
When I looked at the indexes today, there are many that are heavily fragmented. Autogrowth is set to 1MB, unlimited. I know this setup has been in place for a year or so. The database is around 20GB. Large chunks of data are moved in and out of the database regularly.
If I stop the shrink operations and rebuild the indexes, will that fix my problem? Or is the database likely in a state where more drastic action is needed?
IF only T-log than is not that bad but indeex if MDF data files are shrinked as well then indexes will be fragmented so AFTER the shrink you should run a REBUILD and SP_UPDATESTATS instead of before the shrink.
You could read a lots of good advice here:
https://www.brentozar.com/archive/2009/08/stop-shrinking-your-database-files-seriously-now/