Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Example ADO function
>Thanks Steve, yes I have seen this but this did not work either. And
>Jim, thanks for your helpful observation of the error message. Yes, it
>was obvious so I upgraded to the 9.2.0.4 version of the Oracle ODBC
>driver - if you know of another that will work or an alternative code
>approach that might be useful.
As I understood you need to call Oracle stored function from ASP. You can try this...
I think you can manage :-)
Set konekcija = Server.CreateObject("ADODB.Connection") konekcija.Open "Provider=MSDAORA.1;Data Source=oracle_sid;Persist Security Info=True","username","password" Set cmdobject = Server.CreateObject("ADODB.Command") sql = "{?= call package1.function1(?,?,?)}" With cmdobject
Set .ActiveConnection = konekcija
.CommandText = sql
.CommandType = adCmdText
.Parameters(1).Value = Request.Form("param1") .Parameters(2).Value = Request.Form("param2") .Parameters(3).Value = Request.Form("param3").Execute()
function_result = .Parameters(0)
End With
cmdobject.close
konekcija.close
set cmdobject=nothing
set konekcija=nothing
-- РеброReceived on Tue Jun 17 2003 - 05:00:38 CDT