Hi,
We have an issue where we have a DB with an MDF of 720 MB, but an LDF of 25.5 GB!
Server support said it was because the backup was failing, and so the log file couldn't be culled until SQL accepted that a backup had been done and I did have some trouble with editing and deleting the backup maintenance plan with some odd FK constraint issue and other errors.
I finally removed the corrupted backup plan (via T-SQL), created a new one (via maintenance wizard), which included not only an entire SQL server backup (all DB's including system), but also a separate full backup against the particular DB with the large log file issue.
I then ran the backups successfully.
I then ran a shrink log file task with options to re-allocate and reclaim space, but it hasn't made any difference.
I then found info that it could be to do with some setting for 'log_reuse_wait_desc = replication', which may be stopping the auto-shrink if SQL thinks there is an outstanding replication (we don't use replication), but when I check this setting I have : LOG_BACKUP.
So why is my log file so big and why won't it shrink?
Thanks,
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music
We have an issue where we have a DB with an MDF of 720 MB, but an LDF of 25.5 GB!
Server support said it was because the backup was failing, and so the log file couldn't be culled until SQL accepted that a backup had been done and I did have some trouble with editing and deleting the backup maintenance plan with some odd FK constraint issue and other errors.
I finally removed the corrupted backup plan (via T-SQL), created a new one (via maintenance wizard), which included not only an entire SQL server backup (all DB's including system), but also a separate full backup against the particular DB with the large log file issue.
I then ran the backups successfully.
I then ran a shrink log file task with options to re-allocate and reclaim space, but it hasn't made any difference.
I then found info that it could be to do with some setting for 'log_reuse_wait_desc = replication', which may be stopping the auto-shrink if SQL thinks there is an outstanding replication (we don't use replication), but when I check this setting I have : LOG_BACKUP.
So why is my log file so big and why won't it shrink?
Thanks,
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music