Our database seems to be getting to big too fast. Since January our database has grown to almost 600 mb, and it grows about
10-20 mb per day. I have decided to delete some old journal entries , old Quicksell journals . I have done this multiple times on test machine and was getting different database /backup sizes depending on order of the steps.This seems to be the best way but makes me concern about the database. I started with a backup file with size of 569,747 I restored it to ne database on test machine
i ran SQL query
DELETE Journal WHERE time < getdate()-15 this deletes all register journals older than
15 days than i ranrun delete oldjournal delete old qs2000 journals i backed up the database and the backup file was cut down to 346,963 than a run dbcc shrinkdatabase and reindex the backup size went down to 286, 420 ran dbcc shrinkdatabase and reindex again backup went 252, 307 ran it two more times and it went to 216, 083
This makes me wonder if any other data get lost while running shring and reindex.
As far as i know shink and reindex do not remove any data so why does the database file keeps getting smaller each time i run those commands?
Has anyone ran into this problem ? Should i be concerned about running shrink and reindex ?
Is there a better way to manage database size ? Thanks