DBNAME function
Returns, as a character string, the name of the logical database currently in use or the name of your first connected database.
Syntax
ExampleThis portion of a procedure defines a header frame to hold a date, page number, database name, and user ID:
Notes
- The AVM returns the database name in the same form you used when you connected to the database. If you used a fully qualified pathname, the AVM returns the full directory pathname (such as
/usr/acctg/gl
on UNIX orC:\acctg\gl
in Windows). If you used a name relative to your current working directory, then the AVM returns that name (for example, gl).- Unless you define a format, the database name is displayed in a character field with the default format of x(8).
- A database must be connected in order for the DBNAME function to work as described.
See alsoALIAS function, CONNECT statement, CONNECTED function, CREATE ALIAS statement, CREATE CALL statement, DATASERVERS function, DBVERSION function, DELETE ALIAS statement, DISCONNECT statement, FRAME-DB function, LDBNAME function, NUM-DBS function, PDBNAME function, SDBNAME function
OpenEdge Release 10.2B
|