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 > drop procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-09-04, 09:33
Fabienne De Pau Fabienne De Pau is offline
Registered User
 
Join Date: Jan 2004
Posts: 4
drop procedure

When doing a DB Info/Routine, the DB shows two procedures with the same name, but when viewing them, their content is different (but not the parameters). I want to drop these 2 procedures but the drop gives error 9700. What can I do ?
Reply With Quote
  #2 (permalink)  
Old 04-09-04, 09:47
RobP RobP is offline
Registered User
 
Join Date: Mar 2004
Location: Netherlands
Posts: 183
You probably are using IDS 9. This object-relational version can have functions with the same name, but with other input parameters (In the OO world this is called polymorphism). It is wise to give them a specific name when creating them (this is an extra option).

But you can always maintain/drop them by specifying the procedure name and their parameter datatypes.

For example:
DROP PROCEDURE test(int) and
DROP PROCEDURE test(char(250))

Hope this helps,

Rob Prop
Reply With Quote
  #3 (permalink)  
Old 04-09-04, 09:55
Fabienne De Pau Fabienne De Pau is offline
Registered User
 
Join Date: Jan 2004
Posts: 4
I have tried this, but Informix keeps on rejecting because of a syntax error.
This is what I do:
drop procedure end_period_bks_cr
(period CHAR(6),date_time CHAR(14),transid char(20),fct_code1 char(3), fct_code2 char(3));

What is wrong ?
Reply With Quote
  #4 (permalink)  
Old 04-09-04, 10:22
RobP RobP is offline
Registered User
 
Join Date: Mar 2004
Location: Netherlands
Posts: 183
Only specify datatypes, not the parameter name, so:

drop procedure end_period_bks_cr (CHAR(6),CHAR(14),char(20),char(3), char(3));

Hope this helps,

Rob Prop
Reply With Quote
  #5 (permalink)  
Old 04-19-04, 04:54
Fabienne De Pau Fabienne De Pau is offline
Registered User
 
Join Date: Jan 2004
Posts: 4
Thanks, problem is solved.
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