How do I list all stored procedures in Informix?

22,221

Solution 1

Yes, there is. It's called sysprocedures. Try this to see all there's to see:

select * from sysprocedures

For more information on what detailed information is available, read about sysprocedures and sysprocbody and sysproccolumns.

Solution 2

Get the procid of the stored procedure from the below query

select sysprocedures.procname,sysprocedures.procid from sysprocedures

and provide the procid in the below query to view the whole stored procedure

select data from sysprocbody where procid = @procid and datakey = 'T' order by seqno

Solution 3

select sysprocedures.procname from sysprocedures;
Share:
22,221
CheeseConQueso
Author by

CheeseConQueso

facebook.com/CheeseConQueso - Facebook pocketband.net - uLoops/PocketBand grooveshark.com/CheeseConQueso - Grooveshark

Updated on July 05, 2022

Comments

  • CheeseConQueso
    CheeseConQueso almost 2 years

    I'm looking for a way to list all the stored procedures in my database running on Informix.

    Is there a table in the "informix".* database that lists stored procedures along with detail information about them?

  • Adriano Carneiro
    Adriano Carneiro over 12 years
    Did you just answer your own question using the information I provided in my answer??
  • Peter Burns
    Peter Burns over 12 years
    mouse over the time stamps; his answer was first
  • CheeseConQueso
    CheeseConQueso over 12 years
    @Adrian - I found the answer on google and posted before i saw yours, but jeff, i think Adrian posted a minute before me.
  • Foxhound
    Foxhound over 4 years
    This is great, thankyou. Would you know how to execute said procedure?
  • Foxhound
    Foxhound over 4 years
    To answer my above comment: call <procname>()
  • Gabz
    Gabz about 3 years
    God bless you, I've been looking for it all the day.