非常急的ORACLE存储过程调用
我的存储过程编译没问题,可通过ASP调的时候并不显示传出参数,但也不报错。为什么啊?有哪位可以给一个调用oracle存储过程的例子,要带传入传出参数的那种,谢谢
str = "{call DBO.PROTEST(?,?,?,?{resultset 1000,themsg,thescts,theaddr,themomt})}"
'str = "DBO.PROTEST"
With cmd
.CommandText = str
.ActiveConnection = conn
.CommandType = 4 '1
.Parameters.Append cmd.CreateParameter("m_tablename",200,1,15,"KF_MT_20040301")
.Parameters.Append cmd.CreateParameter("m_ms",200,1,15,request.Form("ms"))
.Parameters.Append cmd.CreateParameter("m_addr",200,1,10,"168")
.Parameters.Append cmd.CreateParameter("m_momt",131,1,,"")
'.Parameters.Append cmd.CreateParameter("themsg",200,2,15)
'.Parameters.Append cmd.CreateParameter("thescts",200,2)
'.Parameters.Append cmd.CreateParameter("theaddr",200,2)
'.Parameters.Append cmd.CreateParameter("themomt",131,2)
.CommandTimeout = 5
End With
rs.CursorLocation = 3'adUseClient
set rs = cmd.execute
response.Write(cmd.Parameters("themsg").Value )
response.End()