Results 1 to 3 of 3
  1. #1
    Join Date
    May 2004
    Location
    New York
    Posts
    248

    Unanswered: 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?

  2. #2
    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.

  3. #3
    Join Date
    May 2004
    Location
    New York
    Posts
    248
    Thank you Gustavo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •