on 07-10-2014 7:05 PM
Recently we are getting the "procedure has not been executed or has no result" error while executing Procedures and Dynamic SQL queries in our PowerBuilder 12.5 Application. Can anyone diagnose the cause of such error messages? Better still can someone help us in finding the resolution for this issue?
Thanks in advance!
What database? Perhaps a sample of the code as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The Database is SQL Server. Here follows the error details:
ERROR Code: -1
ERROR Text: procedure has not been executed or has no result
Row Count: 0
Terminating application-
I am not even sure if the error is from Database or from Powerbuilder itself. The code is a simple call to a procedure:
DECLARE setRequestStatus PROCEDURE FOR sRequestStatus
// parameters here
USING SQLCA;
EXECUTE setRequestStatus;
We are returning a value and closing the procedure after fetching the value returned. We do not get this error in our environment. But in production, all hell breaks loose.
About the procedure, it updates a table and retuns a string value. We fetch the string value into a variable and close the procedure.
We've got this convention to close the procedures after the call and fetch. Can you tell me why this error in the first place?
Can you do a database trace in the production environment? You may be experiencing another error in the stored procedure. The trace may show you additional information about why there isn't a result set.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.