大网数据广告活动
磁盘与文件系统

Backup and Restore Parameters

· 52CE 我爱测

Learn more about: Backup and Restore Parameters

Applies to: Windows | Windows Server

Backup and Restore Parameters

This topic contains parameters that are used for backup and restore.

JET_paramAlternateDatabaseRecoveryPath
113

The full path to each database is persisted in the transaction logs at run time. Ordinarily, these databases must remain at the original location for transaction replay to function correctly. This parameter can be used to force crash recovery or a restore operation to look for the databases referenced in the transaction log in the specified folder.

Label Value
Default Value: ""
Type: Folder Path (string)
Valid Range: 0 – 246 characters
Scope: Instance
Set After <a href="gg269354(v=exchg.10).md">JetCreateInstance</a>: Yes
Set after <a href="gg294068(v=exchg.10).md">JetInit</a>: No
Affects Physical Layout: No
Affects Reliability: No
Affects Performance: No
Affects Resources: No
Availability: Windows XP and later releases

JET_paramCleanupMismatchedLogFiles
77

This parameter controls the outcome of JetInit when the database engine is configured to start using transaction log files on disk that are of a different size than what is configured. Normally, JetInit will successfully recover the databases but will fail with JET_errLogFileSizeMismatchDatabasesConsistent to indicate that the log file size is misconfigured. However, when this parameter is set to true then the database engine will silently delete all the old log files, start a new set of transaction log files using the configured log file size, and return JET_errSuccess.

This parameter is useful when the application wishes to transparently change its transaction log file size yet still work transparently in upgrade and restore scenarios.

Label Value
Default Value: False
Type: Boolean
Valid Range: False, True
Scope: Instance
Set After <a href="gg269354(v=exchg.10).md">JetCreateInstance</a>: Yes
Set after <a href="gg294068(v=exchg.10).md">JetInit</a>: No
Affects Physical Layout: Yes
Affects Reliability: No
Affects Performance: No
Affects Resources: No
Availability: All

JET_paramDeleteOutOfRangeLogs
52

When this parameter is true, then any transaction log files found on disk that are not part of the current sequence of log files will be deleted by JetInit. This may be used to automatically clean up extraneous log files after a restore operation.

Windows XP:  Introduced in Windows XP.

Label Value
Default Value: False
Type: Boolean
Valid Range: False, True
Scope: Instance
Set After <a href="gg269354(v=exchg.10).md">JetCreateInstance</a>: Yes
Set after <a href="gg294068(v=exchg.10).md">JetInit</a>: No
Affects Physical Layout: Yes
Affects Reliability: No
Affects Performance: Yes
Affects Resources: Yes
Availability: Windows XP and later releases

JET_paramOSSnapshotTimeout
82

This parameter configures the amount of time allowed between a call to JetOSSnapshotFreeze and JetOSSnapshotThaw before a timeout occurs. Please see JetOSSnapshotFreeze and JetOSSnapshotThaw for more information. The timeout is in milliseconds.

Label Value
Default Value: 20000 (Windows XP and Windows Server 2003);70000 (Windows Server 2003 SP1)
Type: Integer
Valid Range: 0 – 2147483647
Scope: Global
Set After <a href="gg269354(v=exchg.10).md">JetCreateInstance</a>: Yes
Set after <a href="gg294068(v=exchg.10).md">JetInit</a>: Yes
Affects Physical Layout: No
Affects Reliability: No
Affects Performance: No
Affects Resources: No
Availability: Windows XP and later releases

JET_paramZeroDatabaseDuringBackup
71

When this parameter is true then every page in a database that is undergoing a streaming backup will be scrubbed of deleted data. It is important to note that the database pages that are being scrubbed are on disk. The full data set is backed up prior to the scrub process.

Label Value
Default Value: False
Type: Boolean
Valid Range: False, True
Scope: Instance
Set After <a href="gg269354(v=exchg.10).md">JetCreateInstance</a>: Yes
Set after <a href="gg294068(v=exchg.10).md">JetInit</a>: No
Affects Physical Layout: No
Affects Reliability: No
Affects Performance: Yes
Affects Resources: No
Availability: Windows XP and later releases

Requirements

Requirement Value
Client Requires Windows Vista, Windows XP, or Windows 2000 Professional.
Server Requires Windows Server 2008, Windows Server 2003, or Windows 2000 Server.
Header Declared in Esent.h.

See Also

JetCreateInstance
JetInit
JetOSSnapshotFreeze
JetOSSnapshotThaw

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 04/11/2016
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。