Freigeben über


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

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property Database As String
[BrowsableAttribute(false)] 
public string Database { get; }
[BrowsableAttribute(false)] 
public:
virtual property String^ Database {
    String^ get () sealed;
}
/** @property */
public final String get_Database ()
public final function get Database () : String

Eigenschaftswert

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

Hinweise

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.

Threadsicherheit

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

AdomdConnection Class
AdomdConnection Members
Microsoft.AnalysisServices.AdomdClient Namespace