ChangeDatabase(string) Method

Syntax:

public void ChangeDatabase(String databaseName)

Description:

Changes the currently active database.

Parameters:

databaseName

Type: System.String

Specifies the name of the database to access. This must be a valid database name.

Return Value:

None

Exceptions:

Exception Condition
ArgumentNullException The databaseName is null.
RdmException The SQL engine could not change to the specified database.

Reference:

For more information, reference MSDN documentation for: System.Data.Common.DbConnection.ChangeDatabase