Name

ChangeDatabase

Synopsis


Connection.ChangeDatabase(String databaseName);

Changes the current database used by the connection. This database is then used for all subsequent commands. This method corresponds to SQL Server’s USE command. In order to invoke this method, the connection must be open.