If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Error -721

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-13-03, 03:08
FLO FLO is offline
Registered User
 
Join Date: Jun 2003
Posts: 6
Red face Error -721

Hi, I wrote one procedure "CREATE PROCEDURE .... END PROCEDURE;" and when I wanted to load it with dbaccess, but the dbaccess produces an error code "721". From the Informix guide I found the next : "Stored procedure procedure-name is no longer valid.

You are attempting to execute a procedure from an EXECUTE statement, but it has been redefined since the PREPARE statement was run. You must use the PREPARE statement again on the EXECUTE PROCEDURE statement.

For example, the following sequence of code would cause this error:

$prepare pr_stat from 'execute procedure testproc()'; ... /* drop procedure testproc create procedure testproc() ...... [same application or different] */ ... $execute pr_stat;/* triggers error -721 */".

I am very confused, because I wanted just to load the procedure in the Database, not to execute it. Of course, I have an idea to execute this procedure, but after loading. )))
Do you think that somebody can help me?
Thank you in advance.
Reply With Quote
  #2 (permalink)  
Old 06-13-03, 03:24
dananio dananio is offline
Registered User
 
Join Date: Mar 2002
Posts: 112
re

Doese your SP has any execute procedure statements ?
Reply With Quote
  #3 (permalink)  
Old 06-13-03, 03:50
FLO FLO is offline
Registered User
 
Join Date: Jun 2003
Posts: 6
Re: re

Doese your SP has any execute procedure statements ? [/SIZE]
No, it does not contain any executables. The SP is more than simple, some "sql" statements, "if"s,..., if you have an interest I can attached it.
Reply With Quote
  #4 (permalink)  
Old 06-13-03, 04:18
dananio dananio is offline
Registered User
 
Join Date: Mar 2002
Posts: 112
Smile re

Yes ,I do .

ICQ:24681071
Reply With Quote
  #5 (permalink)  
Old 06-13-03, 04:53
FLO FLO is offline
Registered User
 
Join Date: Jun 2003
Posts: 6
Re: re

Here it is:
Attached Files
File Type: sql create_ke.sql (1.7 KB, 106 views)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On