You are not backing up your transaction log file. This is visible if you look at your first screenshot:
The general tab show you that:
Last Database Log Backup : None
If you don't backup your transaction log file, then the transactions are not marked for deletion and will accumulate in the transaction log file and eventually your transaction log file will fill up your disk.
There are two solutions:
Solution 1
- Back up your transaction log file using the tools you are already using.
- Then you can shrink the transaction log file to a smaller size using the GUI in SSMS (
Right click on LOGO_DB | Tasks | Shrink | Files
)
- First release the unused space in your transaction log file by selecting the
File type : Log
:
- Then shrink the actual transaction log file with the following options (open the Shrink dialog again, select
File type : log
):
Select a size which is just above the (Minimum is xxx MB) which is displayed in the dialog.
- Ensure you have a regular transaction log backup scheduled.
Alternatively, you can use the DBCC SHRINKFILE....
commands like this:
USE [LOGO_DB]
GO
DBCC SHRINKFILE (N'logo_db_log' , 0, TRUNCATEONLY)
GO
USE [LOGO_DB]
GO
DBCC SHRINKFILE (N'logo_db_log' , 4096)
GO
This still requires you to have a regular transaction log backup in place.
Solution 2
If you don't require the database to be in FULL Recovery Model, then switch to SIMPLE.
- Switch the database to the
SIMPLE
Recovery Model in the Options
section.
- Perform a
FULL
backup of your database.
- Then you can shrink the transaction log file to a smaller size using the GUI in SSMS (
Right click on LOGO_DB | Tasks | Shrink | Files
):
- First release the unused space in your transaction log file by selecting the
File type : Log
:
- Then shrink the actual transaction log file with the following options (same dialog again,
File type : Log
):
Select a size which is just above the (Minimum is xxx MB) which is displayed in the dialog.
Warning
If you switch to the SIMPLE Recovery model, then you will be unable to restore the database to a given point-in-time. However, seeing as you aren't performing TLOG backups, you won't be able to do that currently anyway.
You might want to have a look at Ola Hallengren's - Maintenance Solution for a complete set of maintenance jobs (Backups, Index Maintenance, Database Checks, ...) or have a consultant look at your setup.