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


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

IDataServerManagerAdmin.RestoreGeodatabase Method

Restores a backup for the specified Geodatabase.

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

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

Product Availability

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

Description

This method restores a Geodatabase from a previous backup.

Remarks

If the dbFilePath parameter is set to 0, the database will be backed up to it's original location.  Specifying the dbFilePath parameter allows you to change the physical location of the data file.  In this case, the dbFilePath parameter should specify the full path of the new location, including the new file name.

You must be a server adminstrator to perform this operation.

See Also

IDataServerManagerAdmin Interface