August 1999
Intermediate to advanced
1488 pages
72h 53m
English
database.minorErrorCode()
The minorErrorMessage() method of the database object contains the secondary ODBC or database numeric error code that is returned if an error occurs.
Listing 8.47 shows how you would create a connection and test for a successful connection. If the test fails, the minorErrorCode() is used when writing the secondary error to the page.
<SERVER> // Open a connection var myConn = database.connect("ORACLE", "mySID", "myApp", "appsPWD", "myTNS"); if (myConn.connected()) { // You are connected, so perform any tasks here }else{ // There was an error connecting to the database write('Error ... |
Read now
Unlock full access