AdomdConnection.Database Property
Gets the name of the database to be used after the AdomdConnection is open.
Espace de noms: Microsoft.AnalysisServices.AdomdClient
Assembly: Microsoft.AnalysisServices.AdomdClient (in microsoft.analysisservices.adomdclient.dll)
Syntaxe
'Déclaration
<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
Valeur de propriété
A string that contains the name of the database that the AdomdConnection uses.
Notes
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.
Sécurité des threads
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.
Plateformes
Plateformes de développement
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Plateformes cibles
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Voir aussi
Référence
AdomdConnection Class
AdomdConnection Members
Microsoft.AnalysisServices.AdomdClient Namespace