IDatabaseConnectionInfo3 Interface

Provides access to members that provide information about the Workspace's connected database.

Members

Name Description
Read-only property ConnectedDatabase The name of the connected database. It may be different from the DATABASE property in the workspace's connection properties.
Read-only property ConnectedDatabaseEx The name of the connected database. It may be different from the DATABASE property in the workspace's connection properties. Works on Oracle.
Read-only property ConnectedUser The name of the connected user. It may be different from the USER property in the workspace's connection properties.
Read-only property ConnectedUsers The current connections to the database.
Read-only property ConnectionCurrentDateTime The current DBMS date/time.
Read-only property ConnectionDBMS The type of DBMS this workspace is connected to.
Read-only property ConnectionServer The server this workspace is connected to.
Method DisconnectUser Disconnect a user connection to the database.
Read-only property GeodatabaseServerClass The ArcSDE server class.
Read/write property IsAcceptingConnections Is the database accepting connections.

IDatabaseConnectionInfo3.ConnectedDatabaseEx Property

The name of the connected database. It may be different from the DATABASE property in the workspace's connection properties. Works on Oracle.

Public ReadOnly Property ConnectedDatabaseEx As String
public string ConnectedDatabaseEx {get;}

Description

`Returns the name of the connected database for all supported databases. IDatabaseConnectionInfo3.ConnectedDatabaseEx should be used to determine the connected database name when performing administration tasks.

IDatabaseConnectionInfo2.ConnectedDatabase should be used if manually preparing table name qualifications. ConnectedDatabase will not return the database for Oracle databases; tables would not be found if the table name is prefixed with the database when using Oracle, see ISQLSyntax.QualifyTableName`

IDatabaseConnectionInfo3.ConnectedUsers Property

The current connections to the database.

Public ReadOnly Property ConnectedUsers As IEnumUserInfo
public IEnumUserInfo ConnectedUsers {get;}

Description

The get_ConnectedUsers method will return an enumeration of IUserInfo objects corresponding to the currently connected users in the Enterprise Geodatabase. You must be the Geodatabase Administrator to call this method.

Errors Returned

FDO_E_SE_NO_PERMISSIONS, FDO_E_NO_PERMISSION

IDatabaseConnectionInfo3.DisconnectUser Method

Disconnect a user connection to the database.

Public Sub DisconnectUser ( _
    ByVal SessionID As Integer _
)
public void DisconnectUser (
    int SessionID
);

Description

The DisconnectUser method will disconnect a user from the Enterprise Geodatabase based on Session ID. The Session ID can be retrieved from a IUserInfo object returned from the call to get_ConnectedUsers or from anIDatabaseLockInfo object returned fromIDatabaseLocksInfo. You must be the Geodatabase Administrator to call this method.

IDatabaseConnectionInfo3.IsAcceptingConnections Property

Is the database accepting connections.

Public Property IsAcceptingConnections As Boolean
public bool IsAcceptingConnections {get; set;}

Description

This property controls if the Enterprise Geodatabase is accepting new connections. If set to False the Enterprise Geodatabase will block any new connections from users who are not the Geodatabase Administrator. You must be the Geodatabase Administrator to alter this property.

Inherited Interfaces

Interfaces Description
IDatabaseConnectionInfo2 Provides access to members that provide information about the Workspace's connected database.
IDatabaseConnectionInfo Provides access to members that provide information about the Workspace's connected database.

Classes that implement IDatabaseConnectionInfo3

Classes Description

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.