SQL code of -204 comes due to sql involving an object which is not defined. SQLCODE = -204, ERROR: objectname IS AN UNDEFINED NAME When does Sql code -204 comes? Sqlcode -204 can come if the sql involves an object which is not defined. This could happen with any DB2 object. This sqlcode can also come if the required qualifier is missing. How the system behaves for sqlcode of -204? The statements can not be executed. How to solve sql code of -204? ; ; ; ; Check if the correct name for the DB2 object has been specified.