Поделиться через


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.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

AdomdConnection Class
AdomdConnection Members
Microsoft.AnalysisServices.AdomdClient Namespace