Hello Champs,
How can we return the error/warning description of DB2 to the calling application? (My application calls DB2 SP and I want to return SQLSTATE and related error description as output parameter of the SP)
We can get latest SQLSTATE and SQLCODE from SYSIBM.SYSDUMMY1 but what is there to get error/warning description?
I've tried by using SQLERROR but it always return blank string though it returns proper SQLSTATE as per the error. (SELECT SQLSTATE, SQLERROR INTO OUT_SQLSTATE, OUT_SQLERROR FROM SYSIBM.SYSDUMMY1
Is there any way to get error/warning description for a given SQLSTATE?
System Info:
O.S. Windows XP
DB2 V8.1.3.132, Fix Pack 3, Personal Edition.
Calling Application: .Net Program
Thanks in Advance,
Jai