Solved

Novice: SQL syntax to get description of Stored procedure through ODBC ?

Posted on 1998-09-17
5
456 Views
Last Modified: 2008-02-26
Hi,
 This is a fairly basic question. I'm using the ODBC API (through VB - though that's not relevant). My problem is I have a stored procedure on an oracle database that I want to  see. Through sqlplus all I have to do is DESCRIBE myProc.

How can I do something similar using the ODBC api (it doesn't like describe).

t
0
Comment
Question by:tenaka
  • 2
  • 2
5 Comments
 

Expert Comment

by:coggie
ID: 1025703
Hi there try,

Select myProc form User_objects

Regards,

Coggie


0
 

Author Comment

by:tenaka
ID: 1025704
I've tried it already.
All I can get out of doing that is whether or not the procedure is valid. I want to see the actual text of the procedure. (On sybase sp_helptext does it).

Thanks anyway

t
0
 
LVL 4

Accepted Solution

by:
sganta earned 80 total points
ID: 1025705

Use this
SELECT TEXT FROM ALL_SOURCE
WHERE NAME = <proc name must be in UPPER>
ORDER BY LINE
/

GOOD LUCK!
0
 

Author Comment

by:tenaka
ID: 1025706
You're a life saver. Exactly what I was after.

t
0
 
LVL 4

Expert Comment

by:sganta
ID: 1025707
Thaks for your comments.

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I guess that all of us know that caching the data usually increase the performance, but I worried if all of us are aware about the risk that caching the data provides and how to minimize this.  That’s the reason why I decided to write this short art…
APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question