可参考微软官网介绍:http://technet.microsoft.com/en-us/library/ms190925.aspx


SQL Server数据库中,一个数据库都是有数据文件(MDF文件)和日志文件(LDF文件)组成的物理结构。


日志截取的空余空间可以被事务日志重新使用。

Log truncation is essential to keep the log from filling. (日志截取是防止log文件被填满。)

Log truncation deletes inactive virtual log files from the logical transaction log of a SQL Server database, freeing space in the logical log for reuse by the Physical transaction log. (日志截取删除数据库逻辑事务日志中的inactive的日志文件,逻辑日志文件中的空余空间会被物理事务日志重利用。)


如果日志文件不被截取,那么它会一直增长,知道磁盘被占满。


为了避免磁盘被占满,经过以下这两个情况的日志都会被截断,除非截断被延迟:

  • Under the simple recovery model, after a checkpoint.

    (数据库处于simple模式,在checkpoint后会被截断;)

  • Under the full recovery model or bulk-logged recovery model, if a checkpoint has occurred since the previous backup, truncation occurs after a log backup (unless it is a copy-only log backup).