This document is archived and information here might be outdated. Recommended version. |
Provides access to members that provide information about the Workspace's connected database. Note: the IDatabaseConnectionInfo interface has been superseded by IDatabaseConnectionInfo2. Please consider using the more recent version.
Use IDatabaseConnectionInfo when you want to get the name of the user or database from a workspace if that user or database is different from that in connection properties returned by ConnectionProperties on the IWorkspace interface.
For example, when connected to a SQLServer database with a login that is a member of the sysadmin fixed server role, that login's username in SQLServer is "dbo". The ConnectedUser property will return "dbo" as the connected user while IWorkspace::ConnectionProperties will return the name of the user with this role.
Name | Description | |
---|---|---|
ConnectedDatabase | The name of the connected database. It may be different from the DATABASE property in the workspace's connection properties. | |
ConnectedUser | The name of the connected user. It may be different from the USER property in the workspace's connection properties. |
Classes | Description |
---|---|
Sde4Workspace (esriDataSourcesGDB) | Esri SDE (4.x) Feature Database. |
VersionedWorkspace | VersionedWorkspace Object. |
Workspace | Workspace Object. |
IWorkspace Interface | IWorkspaceFactory Interface | IPropertySet Interface