If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > calling oracle package.proc from ASP

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-22-06, 02:44
qAnand qAnand is offline
Registered User
 
Join Date: Jul 2003
Posts: 70
calling oracle package.proc from ASP

Dear All,
I have an oracle package with a procedure in it.
From SQL prompt i execute the package like this.

SQL>var rc refcursor;
SQL>exec pck_concurrent.test(:rc);
SQL>print rc;

This will print the recordset in the SQL*Plus. However how do I call this procedure from an ASP page.
Can someone explain this in a series of steps?

Thanks in advance
qAnand

--Below is the package body
CREATE OR REPLACE PACKAGE BODY PCK_CONCURRENT AS
PROCEDURE TEST(P_RECORDSET OUT empcur)
IS
BEGIN
OPEN P_RECORDSET FOR
SELECT a.f1, a.f2, a.f3 FROM A
END TEST;
END PCK_CONCURRENT;
/
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On