Solved

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

Posted on 1998-09-17
5
473 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
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…

691 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