Posted: Thu May 12, 2005 1:31 pm Post subject: SQLSTATE 24502
Newbie
Joined: 21 Jan 2005 Posts: 6
We have an existing application using mqi 2.1.
The execute node contains passthru sql.
When we pass parameters in so that the result set of the sql contains 32 records, the flow works correctly, meaning the messages are placed on the output queue.
When the result set contains 48 records, we see the SQLSTATE 24502 error.
Database error: SQL State '24502'; Native Error Code '-502'; Error Text '[IBM][CLI Driver][DB2/6000] SQL0502N The cursor specified in an OPEN statement is already open. SQLSTATE=24502
It doesn't seem to matter the order we run.... for ex:
reboot the machine
run the 48 record query ----> sqlerror
run the 32 record query ----> successful
run the 48 record query -----> sqlerror
Has anyone seen this error ?
Any help would be appreciated.
Joined: 22 Nov 2002 Posts: 152 Location: London, UK
Quote:
Database error: SQL State '24502'; Native Error Code '-502'; Error Text '[IBM][CLI Driver][DB2/6000] SQL0502N The cursor specified in an OPEN statement is already open. SQLSTATE=24502
The error message here would suggest to me that you are calling a stored procedure to return a result set.
Please post the WMQI ESQL statement (and stored procedure ?) so that we have more information with which to make comment. _________________ Regards, Ian
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum