What is the LDF file in SQL Server?

前端 未结 5 1306
眼角桃花
眼角桃花 2020-12-13 08:22

What is the LDF file in SQL Server? what is its purpose?

can I safely delete it? or reduce its size because sometimes it\'s 10x larger than the database file mdf.

5条回答
  •  清歌不尽
    2020-12-13 08:56

    The LDF file holds the database transaction log. See, for example, http://www.databasedesign-resource.com/sql-server-transaction-log.html for a full explanation. There are ways to shrink the transaction file; for example, see http://support.microsoft.com/kb/873235.

提交回复
热议问题