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 > stored procedure text

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-04-04, 15:59
artemka artemka is offline
Registered User
 
Join Date: May 2004
Location: New York
Posts: 248
stored procedure text

How can I get the source code of the stored procedure from systables?
I tried querying the sysprocbody, all that I'm getting in the data field is a bunch of unreadable characters with partial sql statements. I stumbled on to this before but cannot remember how I did it. Does anybody know?
Reply With Quote
  #2 (permalink)  
Old 11-05-04, 08:45
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Hi,

Please test with:

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

Gustavo.
Reply With Quote
  #3 (permalink)  
Old 11-05-04, 11:40
artemka artemka is offline
Registered User
 
Join Date: May 2004
Location: New York
Posts: 248
Thank you Gustavo
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