Solved

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

Posted on 1998-09-17
5
422 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
Comment Utility
Hi there try,

Select myProc form User_objects

Regards,

Coggie


0
 

Author Comment

by:tenaka
Comment Utility
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
Comment Utility

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
Comment Utility
You're a life saver. Exactly what I was after.

t
0
 
LVL 4

Expert Comment

by:sganta
Comment Utility
Thaks for your comments.

0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This article describes some very basic things about SQL Server filegroups.
This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now