dim s_ip,MyComm
s_ip=request.ServerVariables("REMOTE_ADDR")
Set MyComm = Server.CreateObject("ADODB.Command")
MyComm.CommandText ="XXXXXX"
MyComm.ActiveConnection = conn
MyComm.CommandType = 4
MyComm.Prepared = true
MyComm.Parameters.Append MyComm.CreateParameter("@XXX",3,1,4,0)
MyComm.Parameters.Append MyComm.CreateParameter("@XXX",200,1,50,order_code)
MyComm.Parameters.Append MyComm.CreateParameter("@XXXX",3,1,4,user_id)
MyComm.Parameters.Append MyComm.CreateParameter("@XXXX",20,1,4,StopAmount)
MyComm.Parameters.Append MyComm.CreateParameter("@XXXX",3,4)
MyComm.Parameters.Append MyComm.CreateParameter("@XXX",200,1,50,s_ip)
MyComm.Parameters.Append MyComm.CreateParameter("@XXX",3,1,4,stoptype)
MyComm.Parameters.Append MyComm.CreateParameter("@XX",200,1,50,remark)
MyComm.Execute
intReturn=MyComm(4)
返回值参数的索引是从开始的,这个跟asp常用的参数是不一致的,需要特别注意啊。