ASP.NET
  Home arrow ASP.NET arrow Oracle Database Interaction Using ODP.NET ...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

Oracle Database Interaction Using ODP.NET and ASP.NET: Accessing PL/SQL Stored Procedures
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 13
    2005-10-27

    Table of Contents:
  • Oracle Database Interaction Using ODP.NET and ASP.NET: Accessing PL/SQL Stored Procedures
  • Working with a simple PL/SQL procedure and executing it using ODP.NET
  • A simple PL/SQL procedure with a single parameter
  • A simple PL/SQL procedure with multiple parameters

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Oracle Database Interaction Using ODP.NET and ASP.NET: Accessing PL/SQL Stored Procedures


    (Page 1 of 4 )

    This article (part six of this series) mainly concentrates on working with Oracle PL/SQL stored procedures together with ODP.NET using ASP.NET.
    A downloadable file for this article is available here.

    The sample downloadable solution (zip) is entirely developed using Visual Studio.NET 2003 Enterprise Architect on Windows Server 2003 Standard Edition together with Oracle 10g (version 10.2).  But, I am confident that it would work with other versions of Windows (which support .NET 1.1) as well.

    Sub-programs, stored procedures, PL/SQL stored procedures and hell

    Almost every programming language supports sub-programs. They are part of structured programming. A sub-program is a part of a main program separated completely from the main program. We can consider it to be a separate block of statements (with its own declarations and programming statements), still under the control of the main program.

    Every sub-program is a separate block, separately named, and the main issue is, it gets separately called by the main block (or even an external program or application). The main block (or external program) calls the sub-program by its name to execute its set of statements. This may be a part of the conditions as well.  That means the main program (or external application) may or may not call the sub-program based on certain conditions.

    This concept is mainly taken from the initiative of modularization. It is the process by which you break up large blocks of code into smaller pieces called modules (or sub-programs), which can be called by other modules. With the concept of modularization, our code becomes more reusable, more manageable, more readable and finally more reliable.  This is not only for sub-programs; it is being implemented in the form of packages (to be dealt with in my upcoming articles) as well.

    There are mainly two kinds of sub-programs: procedures and functions.  Both are very similar in functionality and syntactical issues. The one difference is that a function returns a value, but a procedure doesn’t. 

    Until now, you have probably understood everything. Then, what about “stored procedures”?  A stored procedure is very similar to a procedure (sub-program), except that it gets directly stored within the database.  As PL/SQL is the main programming language used to maintain an Oracle database, you can start writing stored procedures using PL/SQL.  Not only that, Oracle even supports stored procedures using Java and .NET too.  . NET based stored procedures are supported only from Oracle 10g version 10.2 (by installing Oracle data extensions for .NET) and Microsoft SQL Server 2005.

    As a PL/SQL stored procedure involves the most traditional way of writing stored procedures, we concentrate on this.  For more information on PL/SQL programming, you can go through my huge lengthy series of PL/SQL articles at www.devshed.com/cp/bio/jagadish-chatarji.

    More ASP.NET Articles
    More By Jagadish Chaterjee


       · Hello guys...I extended the series even to the level of PL/SQL...enjoy..and give me...
     

    ASP.NET ARTICLES

    - Advantages of the ASP.NET MVC Approach
    - ASP.NET Web Forms Weaknesses
    - ASP.NET Web Forms Meets ASP.NET MVC
    - Source Code for Saving and Retrieving Data w...
    - Using GridView to Save and Retrieve Data wit...
    - Handling Dynamic Images in ASP.NET 3.5 AJAX ...
    - Retrieving Data with AJAX and the GridView C...
    - Playing with Images in ASP.NET 3.5 AJAX Appl...
    - Saving and Retrieving Data with AJAX
    - Enhancing PHP Via the ASP.NET AJAX Framework...
    - Enhancing PHP Programming with the ASP.NET A...
    - Classes and ASP.NET AJAX
    - Using ASP.NET AJAX
    - Building a Simple Storefront with LINQ
    - Developing a Dice Game Using ASP.NET Futures...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT