DB2 SQL Errors Codes and Error Messages and Warnings from Error -441 to -444

SQLServerF1

Error: DB2 SQL Error: SQLCODE=-441, SQLSTATE=42601, SQLERRMC=TBSPACEID=, TABLEID=, COLNO=, DRIVER=
INVALID USE OF ‘DISTINCT’ OR
‘ALL’ WITH FUNCTION function-name
SQLSTATE: 42601

Error: DB2 SQL Error: SQLCODE=-443, SQLSTATE=xxxxx (the SQLSTATE that was returned
by the routine), SQLERRMC=TBSPACEID=, TABLEID=, COLNO=, DRIVER=
ROUTINE routine-name (SPECIFIC
NAME specific-name) HAS RETURNED
AN ERROR SQLSTATE WITH
DIAGNOSTIC TEXT msg-text
SQLSTATE: xxxxx (the SQLSTATE that was returned
by the routine).

Error: DB2 SQL Error: SQLCODE=-444, SQLSTATE=42724, SQLERRMC=TBSPACEID=, TABLEID=, COLNO=, DRIVER=
USER PROGRAM name COULD NOT
BE FOUND
SQLSTATE: 42724

Above are list of DB2 SQL Errors and Warnings from Error -441 to -444 received while performing certain operation against DB2 Database or related products.

SQLCODE – Regardless of whether the application program provides an SQLCA or a stand-alone variable, SQLCODE is set by DB2 after each SQL statement is
executed. DB2 conforms to the ISO/ANSI SQL standard as follows:
If SQLCODE = 0, execution was successful.
If SQLCODE > 0, execution was successful with a warning.
If SQLCODE < 0, execution was not successful.
SQLCODE = 100, “no data” was found. For example, a FETCH statement returned no data because the cursor was positioned after the last row of the result table.

SQLSTATE – SQLSTATE is also set by DB2 after the execution of each SQL statement. Thus, application programs can check the execution of SQL statements by testing SQLSTATE instead of SQLCODE.

Hope this was helpful.

Thanks,
SQLServerF1 Team
Information about DB2 SQL Error Codes and Error Messages on Windows, Linux and Z/OS Operating Systems.

 

Leave a Reply

Your email address will not be published. Required fields are marked *