![HP NonStop SQL/MX Messages Manual Download Page 23](http://html.mh-extra.com/html/hp/nonstop-sql-mx/nonstop-sql-mx_messages-manual_165150023.webp)
Message Handling
HP NonStop SQL/MX Messages Manual —640324-001
1 -3
SQLSTATE and SQLCODE
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,
on page 21-2 identifies the equivalent SQLSTATE and
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.
Summary of Contents for NonStop SQL/MX
Page 4: ......
Page 8: ...Contents HP NonStop SQL MX Messages Manual 640324 001 iv ...
Page 26: ...General Messages 0 through 999 HP NonStop SQL MX Messages Manual 640324 001 2 2 ...
Page 130: ...SQL MX MXCMP Messages 2000 through 2999 HP NonStop SQL MX Messages Manual 640324 001 4 34 ...
Page 242: ...Normalizer Messages 5000 through 5999 HP NonStop SQL MX Messages Manual 640324 001 7 2 ...
Page 246: ...Optimizer Messages 6000 through 6999 HP NonStop SQL MX Messages Manual 640324 001 8 4 ...
Page 248: ...Generator Messages 7000 through 7999 HP NonStop SQL MX Messages Manual 640324 001 9 2 ...
Page 614: ...Utility Messages 20000 through 23099 HP NonStop SQL MX Messages Manual 640324 001 18 138 ...
Page 752: ...Non SQLCODE Error Messages HP NonStop SQL MX Messages Manual 640324 001 A 14 MXGNAMES Utility ...