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

Home -> Community -> Usenet -> c.d.o.misc -> Re: How to access oracle function with ADO (VB)

Re: How to access oracle function with ADO (VB)

From: Tom Jordan <TomJordanTojo_at_hotmail.com>
Date: Wed, 19 Sep 2001 17:41:26 +0200
Message-ID: <MPG.1612db0ea10161fe989695@news.t-online.de>


Use a normal recordset with "SELECT function_xy(x,y) FROM DUAL;"

In article <9oaaeh$c5qv9$1_at_ID-52006.news.dfncis.de>, this-berlin_at_gmx.de says...
> How can I access an oracle function with ADO (VB)?
> I've tried with
>
> objCmd.CommandText = "function_xy"
> objCmd.CommandType = 4 'AdoEnums.CommandType.STOREDPROC
> objCmd.Parameters.Refresh
> objCmd.ActiveConnection = srv
> Set objRS = CreateObject("adodb.recordset")
> objRS = objCmd.Execute
>
>
> The error that comes up is PLS 00221 (function_xy is not a procedure or is
> undefined).
> Within C++ it is possible to execute this function with the same command
> type.
>
> ideas?
>
> --
> Tobias Handschuck
>
>
>
Received on Wed Sep 19 2001 - 10:41:26 CDT

Original text of this message

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