开发者

should a db in simple recovery mode have logs truncated prior to backup, after backup or not at all?

开发者 https://www.devze.com 2023-02-14 17:55 出处:网络
should a sql server db in simple recovery mode have logs truncated prior to backup, afte开发者_如何学Cr backup or not at all?In simple recovery mode, your transaction log won\'t grow larger than the a

should a sql server db in simple recovery mode have logs truncated prior to backup, afte开发者_如何学Cr backup or not at all?


In simple recovery mode, your transaction log won't grow larger than the amount of log space required by your largest concurrent transactions. Therefore in a well-behaved system, there is no need to truncate the log on each backup.

However, if there is a chance that some expensive (perhaps ad-hoc) queries will use a lot of log space, you might recover some disk space by truncating the log occasionally.

0

精彩评论

暂无评论...
验证码 换一张
取 消