次の方法で共有


TruncateLogOnCheckpoint Property

この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションは修正することを検討してください。

The TruncateLogOnCheckpoint property configures automatic transaction log maintenance activity.

構文

object
.TruncateLogOnCheckpoint [= value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list
  • value
    TRUE or FALSE

Data Type

Boolean

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetTruncateLogOnCheckpoint(LPBOOL pRetVal);
HRESULT SetTruncateLogOnCheckpoint(BOOL NewValue);

解説

Periodically, and on certain user-directed actions, Microsoft SQL Server forces a write of dirty pages, ensuring data integrity at a point in time. The recovery interval option configures periodic dirty page writes. The Transact-SQL statement CHECKPOINT and other user-directed actions, such as initiating a complete database backup, force a dirty page write.

If TRUE, SQL Server removes log entries referencing committed transactions when activity on the database forces a dirty page write.

If FALSE, the forced dirty page writes have no effect on the database transaction log.

ms140715.note(ja-jp,SQL.90).gif重要 :
Setting the TruncateLogOnCheckpoint property to TRUE implies that backup-maintained database integrity relies on backup of the database only. If TRUE, you cannot back up a database transaction log, and backup strategies based on differential backup of the log are not available. For more information, see データベース オプションの設定.

Applies To:

DBOption Object

参照

関連項目

RecoveryModel Property

その他の技術情報

BACKUP (Transact-SQL)
CHECKPOINT (Transact-SQL)
recovery interval オプション

ヘルプおよび情報

SQL Server 2005 の参考資料の入手