This document is archived and information here might be outdated.  Recommended version.


IDataServerManagerAdmin.SetGeodatabaseToSimpleRecoveryModel Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (DataSourcesGDB)  

IDataServerManagerAdmin.SetGeodatabaseToSimpleRecoveryModel Method

Sets a Geodatabase to simple recovery model.

[Visual Basic .NET]
Public Sub SetGeodatabaseToSimpleRecoveryModel ( _
    ByVal gdbName As String _
)
[C#]
public void SetGeodatabaseToSimpleRecoveryModel (
    string gdbName
);
[C++]
HRESULT SetGeodatabaseToSimpleRecoveryModel(
  BSTR gdbName
);
[C++]

Parameters gdbName [in] gdbName is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

This method sets the Geodatabase to simple recovery model, which is required for backup/restore tools to work.  It is not necessary to use this method when calling the BackupGeodatabase or RestoreGeodatabase methods.

Executing this method is only necessary if the geodatabase recovery model option has been modified outside of ArcGIS.  Geodatabase created within ArcGIS will always use the simple recovery method.

See Also

IDataServerManagerAdmin Interface