What does SQLCODE: -516 signify

Gourav picture Gourav · Oct 19, 2009 · Viewed 7.7k times · Source

I am able to retrieve data from the same database table but am not able to isert The error which i get is

DB2 SQL error: SQLCODE: -516, SQLSTATE: 26501, SQLERRMC: null

Answer

Brian Agnew picture Brian Agnew · Oct 19, 2009

IBM's documentation suggests that

the currentSchema property does not match the schema name of the tables and indexes that you created.

(Although the above is for z/OS, I would expect that the Java DB2 implementation is the same)