ArcObjects Library Reference (DataSourcesGDB)  

IDataServerManagerAdmin.GetDBProperties Method

Returns various properties on a Database.

[Visual Basic .NET]
Public Sub GetDBProperties ( _
    ByVal dbName As String, _
    ByRef status As String, _
    ByRef dbSize As Integer, _
    ByRef owner As String, _
    ByRef createDate As Object, _
    ByRef dbBackup As Object _
)
[C#]
public void GetDBProperties (
    string dbName,
    ref string status,
    ref int dbSize,
    ref string owner,
    ref object createDate,
    ref object dbBackup
);
[C++]
HRESULT GetDBProperties(
  BSTR dbName,
  BSTR* status,
  long* dbSize,
  BSTR* owner,
  VARIANT* createDate,
  VARIANT* dbBackup
);
[C++]

Parameters

dbName [in]   dbName is a parameter of type BSTR status [out]   status is a parameter of type BSTR dbSize [out]   dbSize is a parameter of type long owner [out]   owner is a parameter of type BSTR createDate [out]   createDate is a parameter of type VARIANT dbBackup [out]   dbBackup is a parameter of type VARIANT

Product Availability

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

Description

This method returns properties on a Geodatabase.  It can only be used on Geodatabases that are attached to a data server.  If the dbName parameter does not correspond to a Geodatabase attached to the current data server, an error will be raised.

Remarks

The dbName input parameter specifies for which database the properites should be returned.

The Status value indicates the status of the Geodatabase; such as Online for an attached Geodatabase or Offline for a detached Geodatabase.

dbSize indicates the size in MB of the Geodatabase.

The Owner value corresponds to the owner who created the Geodatabase and will refer to the OS login, not the database login.

The createDate value is the creation date for the Geodatabase.

The DbBackup parameter is an optional parameter (you can specify 0 as an argument).  The DbBackup parameter is the date in which the last backup was performed on this Geodatabase.  If no backup has yet been performed on the Geodatabase, this value will be empty.

See Also

IDataServerManagerAdmin Interface