JDBC_CONNECT
|
Syntax: |
JDBC_CONNECT(<File
Number>,<Name of Database>,<User
Identification>,<Password>[,<JDBC
Driver>])
|
||||||||||
|
|
|
||||||||||
|
Meaning: |
Opens
a connection to a JDBC database. JDBC_CONNECT
returns 0, if no error occurred, otherwise –1. If
an error occurred, the variable OK contains the
error number and the function JDBC_GET_LAST_ERROR$
returns the error text. |
||||||||||
|
Parameter: |
|
||||||||||
|
Sample: |
H% = JDBC_CONNECT(3,"Sales","Id45","Xyz123",
"jdbc:db2://localhost:5000/sample") IF H% = -1
THEN ERRORMES = JDBC_GET_LAST_ERROR$ ENDIF |
||||||||||
|
See
also: |
|