Contacting Your Service Provider - HP NonStop SQL/MX Messages Manual

Table of Contents

Advertisement

Message Handling
SQLSTATE and SQLCODE
SQLSTATE and SQLCODE status codes are returned to indicate either that an SQL
statement completed successfully or that an exception condition was raised during
execution of an SQL statement.
The ANSI SQL-92 SQLSTATE variable is a five-character string with a two-character
class code followed by a three-character subclass code. An SQLSTATE value of
00000 indicates successful completion.
NonStop SQL/MX extends the ANSI SQL-92 SQLSTATE values to include other
situations not described by the ANSI values. If an ANSI SQL-92 SQLSTATE value
exists for an error condition, NonStop SQL/MX returns that value. Otherwise, NonStop
SQL/MX returns an SQLSTATE value that is defined by NonStop SQL/MX.
NonStop SQL/MX also returns a numeric SQLCODE value after SQL statement
execution. SQLCODE values with negative numbers signify errors. SQLCODE values
with positive numbers other than 0 (successful completion) or 100 (no data was found)
signify warning messages. NonStop SQL/MX identifies all messages by their unsigned
SQLCODE value and their calculated SQLSTATE value. The SQLCODE is used to
calculate the SQLSTATE value for all SQL/MX messages other than those for which an
ANSI SQL-92 SQLSTATE value exists.
The SQLCODE parameter is a deprecated feature that is supported to maintain
compatibility with earlier versions of the American standard.
Table 21-1, SQLSTATE Values,
SQLCODE values for SQL/MX warning and error messages.

Contacting Your Service Provider

Some messages have no recovery, and you will be instructed to contact your service
provider. If you cannot solve a problem, go to the Cluster Support Manager and open a
problem report. The Cluster Support Manager collects, saves, and manages all
information needed by your service provider to solve the problem.
For more information, see the NonStop Support Toolkit Help.
on page 21-2 identifies the equivalent SQLSTATE and
HP NonStop SQL/MX Messages Manual—640324-001
1 -3
SQLSTATE and SQLCODE

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nonstop sql/mx 3.0

Table of Contents