DB2 SQL error: SQLCODE: -206, SQLSTATE: 42703

That only means that an undefined column or parameter name was detected. The errror that DB2 gives should point what that may be: Double check your table definition. Maybe you just missed adding something. I also tried google-ing this problem and saw this: http://www.coderanch.com/t/515475/JDBC/databases/sql-insert-statement-giving-sqlcode

DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704

I created local database in DB2 called “TestDB” then I created table called “TestTable“.I found that the table is put under schema name is “yasmin“.I am trying to connect to the DB2 database using JDBC but I got this exception I tried many solutions on the internet Like set schema but unfortunately doesn’t work. This is the JDBC code … Read more

SqlException: DB2 SQL error: SQLCODE: -302, SQLSTATE: 22001, SQLERRMC: null

You can find the codes in the DB2 Information Center. Here’s a definition of the -302 from the z/OS Information Center: THE VALUE OF INPUT VARIABLE OR PARAMETER NUMBER position-number IS INVALID OR TOO LARGE FOR THE TARGET COLUMN OR THE TARGET VALUE On Linux/Unix/Windows DB2, you’ll look under SQL Messages to find your error message. If the code is positive, … Read more

DB2 jdbc connection error Connection refused. ERRORCODE=-4499, SQLSTATE=08001

I have a new DB2 server (v10.5.0.3), and I can connect to the database locally just fine. When trying to connect from a remote server using JDBC I am getting the “Connection refused. ERRORCODE=-4499, SQLSTATE=08001” error. Based on information found here https://www-304.ibm.com/support/docview.wss?uid=swg21403644 I have confirmed that and with these JDBC connection values I have verified that the … Read more