Re: Problem executing Oracle SP from ASP page

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thanks for the responses Val and Daniel,
I was able to resolve this last week by changing the commandtext
property to not include any place holders -
..CommandText = "MECC_Pivot.PivotSteps"

Dave

dave_93_98@xxxxxxxxx wrote:
> Hello,
> I am receiving the following error when I try to execute an Oracle
> procedure (within a package) that returns a ref cursor from an ASP
> page. The error message is -
>
> Syntax error in {call...} ODBC Escape
>
> By the way the code works fine from a VB6 application it only fails
> when executed as an asp page so I don't believe the syntax is
> incorrect. Here is the relevant code -
>
> cnAdo.Provider = "MSDAORA"
> cnAdo.ConnectionString = "...;PLSQLR-Set=1;"
> cnAdo.Open
> cmdAdo.ActiveConnection = cnAdo
> cmdAdo.CommandType = adCmdStoredProc
> cmdAdo.CommandText = "{CALL MECC_PIVOT.PivotSteps(?, ?)}"
> cmdAdo.Parameters.Append cmdAdo.CreateParameter("vLOTID", adVarChar,
> adParamInput, 40, "E0025659")
> cmdAdo.Parameters.Append cmdAdo.CreateParameter("pErrCode",
> adVarNumeric, adParamOutput, 10)
> Set rsAdoDemo = cmdAdo.Execute
>
>
> I do have Oracle 8.1.7 and Oracle 9.2 clients installed on this
> machine.
>
> Thanks,
> Dave

.



Relevant Pages

  • Re: Problem executing Oracle SP from ASP page
    ... Do you run it on a same PC where VB6 application runs fine? ... > I am receiving the following error when I try to execute an Oracle ... Here is the relevant code - ... > adParamInput, 40, "E0025659") ...
    (microsoft.public.data.ado)
  • Single quote as first character in string fails in compare
    ... I got a very strange problem. ... a single quote I get a syntax error, but that only happens in a ... SELECT * FROM dual WHERE dummy like '''a' ... I tried this with Oracle 11.2 and Oracle 10.2 server and Oracle 11.2 ...
    (comp.databases.oracle.misc)
  • DBD::Oracle 1.15 fails to compile on IRIX 6.4/Oracle 7.3.4
    ... Yes, I know my Oracle is OLD, but I am stuck with it. ... I built my perl with -32 option rather than -n32. ... cfe: Error: Oracle.c, line 1166: Syntax Error ...
    (perl.dbi.users)
  • Re: Specifying the CLOBs in SQLLOADER control files
    ... into the datafile in EBCDIC format. ... I am loading the data into the oracle tables using the charcter set ... when i specify a column with CLOB datatype i am getting a syntax error. ... the exact control file ...
    (comp.databases.oracle.server)
  • Problem executing Oracle SP from ASP page
    ... I am receiving the following error when I try to execute an Oracle ... procedure that returns a ref cursor from an ASP ... Here is the relevant code - ...
    (microsoft.public.data.ado)