Contents | Prev | Next

5.15.20.6 connection.databasename

Description

The databasename property of the connection object type contains the name of the default database for the connection. databasename is a read-only property of type string. NOTE: If you want to change the current default database for a connection, call the connection.selectdatabase method.

Example

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

   conn.databasename

is equal to the default database for the connection referenced by conn.

Portability

Operating Systems: All
Standard Pascal: No

Contents | Prev | Next