AdomdConnection.ChangeDatabase Method (String)

 

Updated: March 10, 2016

Changes the current database of the open AdomdConnection.

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

public void ChangeDatabase(
	string database
)

Parameters

database
Type: System.String

The name of the database to which the AdomdConnection should connect.

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.

Return to top
Show: