IDatabaseConnectionInfo2 Interface

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

When To Use

Use IDatabaseConnectionInfo2when you want to know the type of DBMS the workspace is connected to. For example, when connected to a SQLServer database ConnectionDBMS__will return the enumeration value corresponding to a SQLServer 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 ConnectedUser The name of the connected user. It may be different from the USER property in the workspace's connection properties.
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.
Read-only property GeodatabaseServerClass The ArcSDE server class.

IDatabaseConnectionInfo2.ConnectionCurrentDateTime Property

The current DBMS date/time.

Public ReadOnly Property ConnectionCurrentDateTime As Object
public object ConnectionCurrentDateTime {get;}
The object returned by this property is a System.DateTime struct.
The object returned by this property is a System.DateTime struct.

IDatabaseConnectionInfo2.ConnectionDBMS Property

The type of DBMS this workspace is connected to.

Public ReadOnly Property ConnectionDBMS As esriConnectionDBMS
public esriConnectionDBMS ConnectionDBMS {get;}

Remarks

Returns an enumeration value corresponding to the connected DBMS. This might be particularly useful when implementing code that must access a number of different remote database types and depending on the underlying DBMS, change the code accordingly.

IDatabaseConnectionInfo2.ConnectionServer Property

The server this workspace is connected to.

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

IDatabaseConnectionInfo2.GeodatabaseServerClass Property

The ArcSDE server class.

Public ReadOnly Property GeodatabaseServerClass As esriGeodatabaseServerClassType
public esriGeodatabaseServerClassType GeodatabaseServerClass {get;}

Inherited Interfaces

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

Classes that implement IDatabaseConnectionInfo2

Classes Description
SqlWorkspace (esriDataSourcesGDB) Sql workspace

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