Previous Topic: -303 - STATEMENT-NAME OF CURSOR cursor_name NOT PREPARED SELECT STATEMENTNext Topic: -305 - SQLDA HAS count HOST VARIABLES - STATEMENT HAS count PARAMETER MARKERS


-304 - CANNOT DESCRIBE UNPREPARED STATEMENT statement_name

Explanation

The SQL statement was described without being prepared. An SQL statement cannot be described before it is prepared.

The SQLSTATE that equates to this SQL return code is 07S04.

User Response

Prepare the statement before describing it or remove the describe.