AdomdConnection.Database Property

 

Gets the name of the database to be used after the AdomdConnection is open.

Namespace:   Microsoft.AnalysisServices.AdomdClient
Assembly:  Microsoft.AnalysisServices.AdomdClient (in Microsoft.AnalysisServices.AdomdClient.dll)

Syntax

[BrowsableAttribute(false)]
public string Database { get; }
public:
[BrowsableAttribute(false)]
property String^ Database {
    virtual String^ get() sealed;
}
[<BrowsableAttribute(false)>]
abstract Database : string with get
[<BrowsableAttribute(false)>]
override Database : string with get
<BrowsableAttribute(False)>
Public ReadOnly Property Database As String

Property Value

Type: System.String

A string that contains the name of the database that the AdomdConnection uses.

Implements

IDbConnection.Database

Remarks

If the State property of the AdomdConnection has a value of ConnectionState.Open, the value for this property is retrieved from the provider for the current database. Otherwise, the value for this property is taken from the Catalog connection string setting of the ConnectionString property. To change this property, you must use the ChangeDatabase method.

See Also

AdomdConnection Class
Microsoft.AnalysisServices.AdomdClient Namespace

Return to top