connection.selectdatabase

Description

The selectdatabase method procedure is used to make a particular database the default database for an open connection. NOTE: If you want to retrieve the name of the current database for a connection, use the connection.databasename property.

Example

For example, if conn is a connection object reference with an open connection to a database engine then the following:

   conn.selectdatabase('test');

will make test the default database for the connection.

Portability

Operating Systems: All
Standard Pascal: No