I don’t know which is the shortest way to look at the error descriptions like “ERRORCODE=-4463, SQLSTATE=42601” Generally I google such kind of error descriptions and I can get the result somewhat anyways. But this turns out to be very inefficient, sometimes it is just difficult to get description regarding the error code and sql state. I know the db2 built in command like : db2 ? SQL0443N will provide information about specific SQLCODE But when encountered error description like that above , how do I turn that into a SQLCODE, so that I can lookup it quickly using db2 ?
2
votes
2 Answers
5
votes
0
votes
Here is the link with different DB2 error codes https://urssanj00.wordpress.com/2008/03/04/db2-sql-error-code-and-description/
This saved me tons of hours!
SQLSTATE? If I'm remembering right, the only real difference between states and codes is that states are supposed to be universal, while codes tend to be vendor-defined (although there are some commonalities). There's also a listing online, which may help. - Clockwork-Muse