存储过程返回(out)null

时间:2015-03-19 09:38:28

标签: oracle stored-procedures vbscript asp-classic

我尝试使用VBScript获取此Oracle存储过程的返回值,但每次返回NULL(无),而不是填充cmd("retVal")。我的错误在哪里?

如果此存储过程正常工作,它必须返回一个整数值,如1或-2参数传递并更改db数据,但不返回存储过程中OUT参数中的任何值。

Set connORA = Server.CreateObject("ADODB.Connection")
connORA.ConnectionString = "conninfo"
connORA.Open

Set cmd = Server.CreateObject("ADODB.Command")
Set cmd.ActiveConnection = connORA

cmd.CommandText = "{call procedureName(486954,100002335,'0','0',0,'12-03-2015','X','IPTAL_EDILDI',443,'SAT',?)}"
cmd.Prepared = True
cmd.Parameters.Append cmd.CreateParameter("retVal", 131, 2)
cmd.Execute

Response.Write cmd("retVal")

Set oCmd = Nothing
connORA.Close
Set connORA=nothing

0 个答案:

没有答案