Hello experts,
I have sent an email to the Oracle 9i forum and received an answer saying that the issue might be related to crystal reports so I need all the experts advice. I have created a very simple Oracle Stored procedure(I am trying to learn oracle 9.2) and what I found was that crystal is prompting me for a value. I am not sure what value should be inputed. I just wish to return the results of the select. I tried all type IN/OUT/In Out and still nothing. Any ideas why I cannot return any info. Thanks everyone. I have applied all references made in the scr_oracle_stored_procedures.pdf and still did not obtain what I needed. Thanks again
CREATE OR REPLACE PACKAGE GroupsPackage
AS
TYPE CURSOR_TYPE IS REF CURSOR;
PROCEDURE usp_SelectGroups (results_cursor IN OUT CURSOR_TYPE);
END;
/
CREATE OR REPLACE PACKAGE BODY GroupsPackage
AS
PROCEDURE usp_SelectGroups (results_cursor IN OUT CURSOR_TYPE)
AS
BEGIN
OPEN results_cursor FOR
SELECT Entry_id
FROM shr_people
ORDER BY Entry_id;
END;
END;
/
Using crystal report 9.2.2.634.
I have sent an email to the Oracle 9i forum and received an answer saying that the issue might be related to crystal reports so I need all the experts advice. I have created a very simple Oracle Stored procedure(I am trying to learn oracle 9.2) and what I found was that crystal is prompting me for a value. I am not sure what value should be inputed. I just wish to return the results of the select. I tried all type IN/OUT/In Out and still nothing. Any ideas why I cannot return any info. Thanks everyone. I have applied all references made in the scr_oracle_stored_procedures.pdf and still did not obtain what I needed. Thanks again
CREATE OR REPLACE PACKAGE GroupsPackage
AS
TYPE CURSOR_TYPE IS REF CURSOR;
PROCEDURE usp_SelectGroups (results_cursor IN OUT CURSOR_TYPE);
END;
/
CREATE OR REPLACE PACKAGE BODY GroupsPackage
AS
PROCEDURE usp_SelectGroups (results_cursor IN OUT CURSOR_TYPE)
AS
BEGIN
OPEN results_cursor FOR
SELECT Entry_id
FROM shr_people
ORDER BY Entry_id;
END;
END;
/
Using crystal report 9.2.2.634.