The CONNECT statement explicitly establishes an SQL session between a user application and Adabas SQL Gateway Embedded SQL.
Embedded Mode P |
Dynamic Mode |
Interactive Mode P |
All specifiers can either be character string constants or single host variable identifiers. The host variables must have been defined in the application program according to the host language rules and their values must be character strings.
The maximum lengths of these specifiers are as follows:
The CONNECT statement explicitly establishes an SQL session between the user application and Adabas SQL Gateway Embedded SQL.
The user specified must exist (see CREATE USER statement). If user is not specified, the connection will be refused. If a password is not specified, blanks will be generated as default password.
If a server is not specified, the default server is used.
None.
None
none
Examples:
CONNECT TO MYASG user XXX password YYY