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


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

IDataServerManagerAdmin.DetachGeodatabase Method

Detachs a database from a server.

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

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

Product Availability

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

Description

This method detaches a Geodatabase from a database server.  Once detached, the Geodatabase can be re-attached to this or some other database server.  A Geodatabase cannot be detached while users are connected to it.

Remarks

You must be a server administrator to perform this operation.

See Also

IDataServerManagerAdmin Interface