Checkpoint Method
后续版本的 Microsoft SQL Server 将删除该功能。 请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。
The Checkpoint method forces a write of dirty database pages.
语法
object.Checkpoint( )
Parts
- object
Expression that evaluates to an object in the Applies To list.
Prototype (C/C++)
HRESULT Checkpoint();
注释
For an instance of Microsoft SQL Server, database checkpoints are performed automatically and at user direction. Checkpoints verify the consistency of data and a database can be configured for log truncation on a checkpoint, as consistency is assumed when a checkpoint occurs. For more information about SQL Distributed Management Objects (SQL-DMO) and checkpoints, see TruncateLogOnCheckpoint Property and ConfigValue Object.
For more information about SQL Server database checkpoints, see CHECKPOINT (Transact-SQL)and recovery interval 选项.