Board index » delphi » Oracle REF CURSOR, ADO, and DELPHI
John Evans
![]() Delphi Developer |
Sat, 09 Aug 2003 22:37:50 GMT
Oracle REF CURSOR, ADO, and DELPHI
Has anyone been able to do this? I have been reading oracle documentation,
ADO documentation, newsgroups, websites... everything looking for a practical example of this in Delphi using ADO. So far I have learned that a REF CURSOR is required to return a result set from a stored procedure. Second, I have learned that the stored procedure returning the REF CURSOR must not be in a package body (according to Oracle docs.) To return all the columns and rows from a table named PROP, I have a simple CREATE OR REPLACE package cur_pkg as and a stored procedure: create or replace procedure get_props(cur_var in out cur_pkg.RefCur) as I am using a TADOStoredProc component to connect to Oracle 8.1.6 using the I am able to select the stored proc from the list of available procedures in When I attempt to set the Active property of the StoredProc to true, Oracle I have tried everything I can think of to make this work to no avail. Has anyone been able to assemble the pieces of this puzzle? Any further Regards, John M Evans |