Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Changes the current database of the open AdomdConnection.
Namespace: Microsoft.AnalysisServices.AdomdClient
Assembly: Microsoft.AnalysisServices.AdomdClient (in Microsoft.AnalysisServices.AdomdClient.dll)
Syntax
'Declaration
Public Sub ChangeDatabase ( _
database As String _
)
'Usage
Dim instance As AdomdConnection
Dim database As String
instance.ChangeDatabase(database)
public void ChangeDatabase(
string database
)
public:
virtual void ChangeDatabase(
String^ database
) sealed
abstract ChangeDatabase :
database:string -> unit
override ChangeDatabase :
database:string -> unit
public final function ChangeDatabase(
database : String
)
Parameters
- database
Type: System.String
The 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 nulla null reference (Nothing in Visual Basic) value, an empty string, or a string containing only spaces. The AdomdConnection is not connected to a valid session. |