We have an industrial program. For a device that is running 24 hours a day. The database is constantly used. What I noticed today after 4 months: The database log file size was 80 Gig !
Query execution speeds were slower. Shrink did not reduce the volume of logs. With my search I set the Recovery Model to Simple, and then I did the Shrink . Logs volume reduced to 1 MB !
Recovery model set to Full.
But why did this happen? And how can I stop it?
If you need more info tell me to add it
SIMPLErecovery model but your only recovery option is from full (and optionally differential) backup, meaning all changes made since the backup will be lost if you need to restore. The FULL (or BULK_LOGGED) model along with regular log backups will mitigate data loss and backing up the log will keep the log file size reasonable. Regardless, make sure you have a recovery plan and test it. – Dan Guzman Mar 03 '20 at 11:24