SQL Log File Not Shrinking in SQL Server 2012 -


i dealing else's backup maintenance plan , have issue log file, have database sits on 1 drive size of 31 gb , log file sits on server size of 20 gb, database in full recovery model. there maintenance plan runs once day complete backup , second plan backup of log file every 15 minutes. have checked , drive log file gets backed , there still plenty of room log file never gets smaller after backup, there missing maintenance plan?

thanks in advance

the situation describe seems fine.

a transaction log backup not shrink log file. however, truncate log, file, means space can reused:

from books online (transaction log truncation):

log truncation automatically frees space in logical log reuse transaction log.

also, managing transaction log:

log truncation, automatic under simple recovery model, essential keep log filling. truncation process reduces size of logical log file marking inactive virtual log files not hold part of logical log.

this means each time transaction log backup occurs in scenario, it's creating free space in file can used subsequent transactions.

leading on this, should shrink file well? speaking, answer no. assuming database not have massive one-off spikes in usage, transaction log have grown size accommodate typical workload.

this means if start shrinking log, sql server need grow again... resource intensive operation, affecting server performance, , no transactions can complete while log growing.

the current plan , file sizes seem reasonable me.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -