AdomdConnection.ChangeDatabase Method

Changes the current database of the open AdomdConnection.

命名空间: Microsoft.AnalysisServices.AdomdClient
程序集: Microsoft.AnalysisServices.AdomdClient (in microsoft.analysisservices.adomdclient.dll)

语法

声明
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
)

参数

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

异常

异常类型 条件
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.

线程安全

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.

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

AdomdConnection Class
AdomdConnection Members
Microsoft.AnalysisServices.AdomdClient Namespace