Default database

The default database is a relational database that is accessed when an SQL-related I/O statement runs in EGL-generated code and when no other database connection is current. The default database is available from the beginning of a run unit; however, you can dynamically connect to a different database for subsequent access in the same run unit, as described in sysLib.connectionService.

The default database is specified in the optional run-time property vgj.jdbc.default.database, which receives a generated value from build descriptor option sqlDB if option genProperties is set to GLOBAL or PROGRAM at generation time.

Related concepts
Java run-time properties
Run unit
SQL support

Related tasks
Setting up a J2EE JDBC connection
Setting up the J2EE run-time environment for EGL-generated code
Understanding how a standard JDBC connection is made

Related reference

Java run-time properties (details)
sqlDB
sysLib.connectionService