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?
Export Stored Procedure in SQL Server In the Object Explorer, right-click on your database. Select Tasks from the context menu that appears. Select the Generate Scripts command.
To view the definition a procedure in Object Explorer In Object Explorer, connect to an instance of Database Engine and then expand that instance. Expand Databases, expand the database in which the procedure belongs, and then expand Programmability.
Informix iSQL has a command " info tables; " that shows all tables.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With