Products A-Z All Services Can't find what you're looking for? Chat Live!
Products A-Z Can't find what you're looking for? Chat Live!
Can't find what you're looking for? Chat Live!
Hi Mitchell! I realize this is an old post, but I wanted to inquire as to how your Full Recovery model affects your RE log (.LDF file). We have been trying to run RE7 in Full Recovery mode with transaction log backups every 15 minutes, however the .LDF grows out of control at certain points in the day (jumping by 10-15 GB). The transaction log backup is not truncating the log, and a DBCC shrinkfile command does not shrink the log either. The only solution to shrink the log after this rapid growth is to change the recovery model to simple, and then run DBCC shrinkfile. Obviously this is not practical. Have you encountered anything similar? Thanks, Kate
You need to check the file size of data files and log files through database properties of SQL- Sever. If initial size of your data files is around 600 MB for example, try setting the initial size of your log files to 60 MB, with auto growth increment of 50%. Then you can schedule maintenance plans for data back ups (to be executed may be once a day), and log back ups (to be executed multiple times a day depending on your organization or department data recovery rules).
In addition you can run (schedule) the following command through the maintenance plan to shrink data and log files:
DBCC SHRINKDATABASE
which will shrink your database when it grows certain level (you would need to specify that level). This is a little tricky. You need to gather the following information:
This would help you decide on the initial size of the log files and specify how much free space you would want to retain after executing DBCC SHRINKDATABASE.
I hope this helps,
Mark.