
SQL query: from SELECT statement to stored procedure with dynamic PL/SQL
Quote:
> PL/SQL cannot return a recordset like MS Sqlserver. It is impossible
> to use Oracle functions/procedures as a datasource to crystal, or at
> least it was when I checked into it last.
It's actually possible by using an IN OUT REF CURSOR as one of the
parameters of the procedure, then use OPEN passed_cursor FOR. Check
Seagate Knowledge Base's article c2004898.
So, how do I switch from a SELECT statement to a procedure in an
existing report? I tried to modify the SQL query box, but it puts back
a SELECT statement after I clicked on OK with a {myproc(?,?,?...)}
inside the dialog.
Also, when I refresh data, if I want to modify just ONE parameter
and click on "Prompt for new parameter values", does it clean
everything or just the chosen parameter ?
Thank you.