Esentutl /recovery

 

Applies To: Windows Server 2008, Windows Server 2012, Windows 8

Performs recovery, bringing all databases to a clean-shutdown state.

For examples of how to use this command, see Examples.

Syntax

Esentutl /r <3-character logfile base name> [<options>]

Parameters

Parameter: <3-character logfile base name> 

<options>: You can specify zero or more of the options that are listed in the following table. Separate each option with a space.

Option

Description

/l

Location of log files (default: current directory)

/s <path>

Location of system files (for example, the checkpoint file) (default: current directory)

/i

Ignore mismatched/missing database attachments

/t

On successful recovery, truncate log files

/u [log]

Stop recovery when the Undo phase is reached with the option to stop when a certain log generation is recovered. [log] is the log generation number and if not specified the replay will go the end of the existing logs.

/d [path]

Location of database files or current directory if [path] not specified. (default: directory originally logged in log files)

/n<path1[:path2}>

New location of database file and optional old location if the database file location changed.

Can be specified for each database file.

If a certain database is not in the list, it will not get recovered.

To allow recovery in the original location for all other databases, use n* (not valid with /d switch; not valid with /b switch).

/a

Allow recovery to lose committed data if database integrity can still be maintained.

/2

Sets the database page size to 2k. The default is auto-detect.

/4

Sets the database page size to 4k. The default is auto-detect.

/8

Sets the database page size to 8k. The default is auto-detect.

/16

Sets the database page size to 16k. The default is auto-detect.

/32

Sets the database page size to 32k. The default is auto-detect.

/o

Suppresses the logo.

Examples

The following command recovers E02 log file. 

Esentutl /r E02

Additional references

Command-Line Syntax Key

Esentutl