AdomdConnection.ChangeDatabase Method

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 _
)
public void ChangeDatabase (
    string database
)
public:
virtual void ChangeDatabase (
    String^ database
) sealed
public final void ChangeDatabase (
    String database
)
public final function ChangeDatabase (
    database : String
)

Parameters

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

Exceptions

Exception type 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.

Thread Safety

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.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

AdomdConnection Class
AdomdConnection Members
Microsoft.AnalysisServices.AdomdClient Namespace