Disable Transaction Log

后端 未结 5 1951
你的背包
你的背包 2020-12-07 16:40

Oracle has SQL commands that one can issue so that a transaction does not get logged. Is there something similar for SQL Server 2008?

My scenario: We need Tx logs on

5条回答
  •  忘掉有多难
    2020-12-07 17:00

    What's your problem with Tx logs? They grow? Then just set truncate on checkpoint option.

    From Microsoft documentation:

    In SQL Server 2000 or in SQL Server 2005, the "Simple" recovery model is equivalent to "truncate log on checkpoint" in earlier versions of SQL Server. If the transaction log is truncated every time a checkpoint is performed on the server, this prevents you from using the log for database recovery. You can only use full database backups to restore your data. Backups of the transaction log are disabled when the "Simple" recovery model is used.

提交回复
热议问题