AdomdConnection.ChangeDatabase Method (String)
Changes the current database of the open AdomdConnection.
Namespace: Microsoft.AnalysisServices.AdomdClient
Assembly: Microsoft.AnalysisServices.AdomdClient (in Microsoft.AnalysisServices.AdomdClient.dll)
Syntax
public void ChangeDatabase(
string database
)
public:
virtual void ChangeDatabase(
String^ database
) sealed
abstract ChangeDatabase :
database:string -> unit
override ChangeDatabase :
database:string -> unit
Public Sub ChangeDatabase (
database As String
)
Parameters
database
Type: System.StringThe name of the database to which the AdomdConnection should connect.
Implements
IDbConnection.ChangeDatabase(String)
Exceptions
Exception | Condition |
---|---|
System.InvalidOperationException | The database parameter is set to a null value, an empty string, or a string containing only spaces. The AdomdConnection is not connected to a valid session. |
See Also
AdomdConnection Class
Microsoft.AnalysisServices.AdomdClient Namespace
Return to top