Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 1998-09-17
5
Medium Priority
?
482 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 320 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

618 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