DatabaseName connection parameter [DBN]

Function

Specifies a loaded database to which a connection needs to be made. Use when connecting to a database that is already running.

To connect to a database that is not already running, use the DatabaseFile (DBF) parameter.

Usage

Running network servers

Values

String

Default

There is no default setting.

Description

When a database is started on a server, it is assigned a database name, either by the administrator using the -n option, or by the server using the base of the file name with the extension and path removed.

If the database you want to connect to is already running, you should specify the database name rather than the database file.

A connection will only occur if the name of the running database matches the name that is specified in the DatabaseName (DBN) parameter.

NoteIf you specify both the database name and database file, the database file is ignored and is not used to try to connect to a database that is already running.

See also

For HTTP connections, see “DatabaseName communication parameter [DBN]”.

Examples