Click here to Skip to main content
Click here to Skip to main content

Oracle Stored Procedure Wrapper

By , 11 Aug 2004
 

Sample Image - OracleSPWrapper.jpg

Introduction

This small VB.NET application allows you to quickly generate VB.NET wrapper code for your Oracle stored procedures. This code can then be copy/pasted into your VB.NET application.

Background

Visual Studio has similar tools built in for SQL Server, but their Oracle equivalents are lacking. That's where this tool comes in handy.

Using the Tool

This VB.NET application comes ready to run. All you need is the .NET Framework 1.1 installed and the appropriate Oracle SQL*Net drivers because the application uses the System.Data.OracleClient for database access.

Upon start up, you need to log in to your Oracle database by clicking on the "Login" button and entering your username, password, and database. If the login is successful, the application will populate the list box with all of your stored procedures, whether they're stand-alone or part of a package.

You highlight a stored procedure and click "Go". If you want to name your VB Sub different than the name of the stored procedure, edit the text in the "Sub Name" field.

When you click "Go", the application will query the database for the parameter list of the stored procedure and build a VB.NET Sub in the text box.

To use the Sub, copy and paste the generated text into your application.

Points of Interest

The is a fairly quick-and-dirty application that I needed for a project. As such, it's not extremely robust or fault-tolerant. If there is enough interest here, I can further refine it.

The application works for stored PROCEDURES, but not stored FUNCTIONS, because with functions, a return value is expected. I didn't add support for FUNCTIONS because I didn't need it at the time; all of my procedures use OUT or IN/OUT parameters for passing data back to the application.

I've tested this application on Oracle8i and Oracle9i. Earlier versions may or may not work.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Barry Etter
Web Developer
United States United States
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
Generalnice butmemberDan112321 Sep '07 - 7:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 12 Aug 2004
Article Copyright 2004 by Barry Etter
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid