Home     |     Java    |     Php General    |     Oracle Database    |     Oracle Server  

MS Dynamics CRM 3.0

  •  Setting up and Configuring Microsoft Dynamics CRM 3.0
  •  Managing Security and Information Access
  •  Entity Customization: Concepts and Attributes
  •  Entity Customization: Forms and Views
  •  Entity Customization: Relationships, Custom Entities, and Site Map
  •  Reporting and Analysis
  •  Workflow
  •  Server-Side SDK
  •  Client-Side SDK
  •  Integration with External Applications
  • Cervo Technologies
    The Right Source to Outsource

    Sharepoint Portal Server KB

    Microsoft CRM Info

    WPF Interview Questions

    SilverLight Interview Qs

    Asp.Net 2.0 Interview Qs

    Asp.NET 1.1 FAQs

    Oracle Interview Questions

    SAP Interview Questions

    Oracle Database

    beginner: packaging queries?


    are procedures and functions the only types of queries that I can put
    into a package?

    I have painstakingly created a couple of plsql db queries and saved
    them as *.sql files.    Is there a simple way to create a package out
    of these two plsql queries or do I need to re-write them as stored
    procedures/functions?    I'm dreading having to translate these into
    sprocs/functions because they contain cursors that i don't yet know
    how to implement.

    Thanks.

    It is a trivial step to turn your anonymous plsql blocks into a
    procedure or function, and then into a package should you choose.

    Judging by the code in your other post, you can leave most of the code
    as is, just changing 'DECLARE' into the 'CREATE PROCEDURE...'
    statement.

    -----------------------------------------------Reply-----------------------------------------------

    On Apr 10, 4:43 am, "dombrooks" <dombro@hotmail.com> wrote:

    > It is a trivial step to turn your anonymous plsql blocks into a
    > procedure or function, and then into a package should you choose.

    > Judging by the code in your other post, you can leave most of the code
    > as is, just changing 'DECLARE' into the 'CREATE PROCEDURE...'
    > statement.

    Matt, I would like to point out that procedure and functions are NOT
    types of queries, but rather are database objects that may contain SQL
    statements.

    As stated converting anonymous code into stored code: procedures,
    function, and packages is a trivial matter.

    Take a few minutes to look at the PL/SQL User's Guide and Reference
    manual.  This manual provides numerous examples using explicit
    cursors.

    The SQL manual also may be of use since it covers CREATE PROCEDURE,
    CREATE FUNCTION, and CREATE PACKAGE [body].

    The manuals are available online.  Just follow the links from the main
    Oracle site: www.oracle.com or go to http://tahiti.oracle.com

    HTH -- Mark D Powell --

    Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc