Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Using Crystal Reports to call an Oracle package?

Re: Using Crystal Reports to call an Oracle package?

From: TurkBear <john.greco_at_dot.state.mn.us>
Date: Thu, 24 Jul 2003 10:23:32 -0500
Message-ID: <rbuvhvcgh5bst9eo18397co3n5drglilqf@4ax.com>

Crystal Reports can only use Oracle Stored Procedures,not Functions, and the SP must return a REF CURSOR ( similar to a recordset )...

hlngus_at_hotmail.com (Yvonne G) wrote:

>I'm getting an "Error in compling SQL Expression: syntax error found here",
>when calling an Oracle package using Crystal Reports, which I believe is
>just Crystal saying it can't read the package.
>
>The function basically converts a float number into a text string
> that indicates which of 30 flags are being set.
>It runs fine from within TOAD.
>
>I'm using Crystal 8.0.1.1 and Oracle 8.01.06 and ODBC (pdsodbc.dll) .
>
>Code is as follows:
>
>SELECT
> classname class,rpad(description, 43, ' ') description,
> SFC.RADIX.TO_BIN(ABS(CLASS.FLAGDISPLAY))
>FROM class
>
>snippet of package:
>CREATE OR REPLACE PACKAGE BODY radix
>IS
>
> FUNCTION to_bin( p_dec IN NUMBER ) RETURN VARCHAR2
> IS
> BEGIN
> RETURN to_base( p_dec, 2 );
> END to_bin;
>END radix;
>/
>Thanks for any input.
Received on Thu Jul 24 2003 - 10:23:32 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US