Before your application program can execute SQL statements, the program must connect to the database instance and open a database session.
Use the statements for connecting to the database instance. Note the following:
· The statements for connecting to the database instance must be the first SQL statements executed by the application program. However, they do not have to be the first SQL statements in the source code.
For the correct order of the SQL statements in the source code, see Conventions for the Order of SQL Statements.
· One application program can have multiple sessions with one or more database instances. The database instance handles each session as an independent transaction. In the SQL mode INTERNAL, there can be a maximum of eight parallel sessions with different MaxDB database instances.