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 > Delphi, C etc > To retrieve Adodataset form oracle stored procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-07-06, 03:30
deviprasad deviprasad is offline
Registered User
 
Join Date: Jul 2006
Posts: 3
To retrieve Adodataset form oracle stored procedure

Hello All,

Can any one please let me know how to retrieve adodataset from oracle stored procedure. I need to use TadoQuery component.

Here is my simple SP with package

CREATE OR REPLACE PACKAGE RefCur_pkg
AS
TYPE testcur IS REF CURSOR;
PROCEDURE test_sp(name in varchar, o_Cursor OUT testcur);
END RefCur_pkg;


CREATE OR REPLACE PACKAGE BODY RefCur_pkg
AS
PROCEDURE test_sp(name in varchar, o_Cursor OUT testcur)
IS
BEGIN
OPEN o_Cursor FOR
SELECT * FROM categories;
END test_sp;
END RefCur_pkg;



In delphi5 my code is like ...


With (ADOQuery2) Do
Begin
Close;
Sql.Clear;
Sql.Text := 'call refcur_pkg.employeesearch(?)';
Parameters.CreateParameter'test1',ftstring,pdInput ,10,null);
Parameters.CreateParameter('cur',ftCursor,pdOutPut ,2000,null);
ExecSql;
End;

I'm getting an error like 'parameter object is improperly defined. inconsistent or incomplete information provided'.

Can anyone please solve my problem.... Please.!
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On