Huge Transaction Log - Is This Normal?

前端 未结 5 2128
没有蜡笔的小新
没有蜡笔的小新 2021-01-14 00:06

I have a 5GB database and a 20GB transaction log (SQL Server 2005). Not sure why it is so large or what happened to make it that large, it used to be around 1/2 the size of

5条回答
  •  天命终不由人
    2021-01-14 00:18

    Er... excuse the bleeding obvious, but do you have scheduled backups with "BACKUP LOG"

    If the recovery model is FULL then this needs to happen.

    There are other, rare options that I'll include (not exhaustive):

    • Large table index rebuild/maintenance. However, backup log will clear this.
    • An open transaction preventing backup log removing entries (hence it grows)
    • A connection with SET IMPLICIT_TRANSACTIONS ON (see previous point)

提交回复
热议问题