get sqlca by select statement
Posted in 2004
Topics: SQL Development & Query Writing, Error Codes & Troubleshooting, Java & JDBC Development
Hi, Is there any way to get the values of sqlca record using sql query? I need in java, after any sql execution get the value for ISAM ERROR into a try catch. I know that this value is into sqlca.sqlerrd[2]. Anyone can help me? tks in advance.
To get the ISAM and RSAM error codes and text, use the SQLException class described in the Informix JDBC driver documentation at: www.ibm.com/informix/pubs/library You only need to use SQLCA to get the last inserted serial number: SELECT DBINFO('sqlca.sqlerrd1') FROM systables WHERE tabid = 1 -- Regards, Doug Lawry www.douglawry.webhop.org "Wellidy Almeida" <wellidyalmeida@yahoo.com.br> wrote: > Hi, > > Is there any way to get the values of sqlca record using sql query? > I need in java, after any sql execution get the value for ISAM ERROR > into a try catch. > I know that this value is into sqlca.sqlerrd[2]. > > Anyone can help me? > > tks in advance.