Connection.majorErrorMessage() (Method)

Provide the descriptive text message for an error raised by the database server or by the ODBC interface to it.

Availability:

JavaScript - 1.2
Netscape Enterprise Server - 3.0
Property/method value type:String primitive
JavaScript syntax:NESmyConnection.majorErrorMessage()

For a status code value of 5 when using the Oracle database, this yields a text string describing the server error.

For a status code value of 5 when using SQL server through the ODBC database interface, this yields a text string from SQL server.

For a status code value of 7 when using the Informix database, this yields the text string from the vendor error library.

For a status code value of 7 when using the Sybase database, this yields a text string from the DB-Library.

See also:database.majorErrorMessage(), DbPool.majorErrorMessage(), Error handling, Status code