Ok, I've searched the web with Google, and I've read over 100 Q&As on this forum, but I can't find anywhere how to get the SQL return code out of a recordset after an insert.
I am doing inserts of records that come from an outside vendor, and they often send records with duplicate keys.
I want to do an insert into DB2, then get the return code and check for timeouts, duplicate keys or any of the other possible errors.
How do I get the SQLCode?
I am doing inserts of records that come from an outside vendor, and they often send records with duplicate keys.
I want to do an insert into DB2, then get the return code and check for timeouts, duplicate keys or any of the other possible errors.
How do I get the SQLCode?