一个调用存储过程错误的问题

yujingfree yujingfree 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

Set MyComm = Server.CreateObject("ADODB.Command")
MyComm.ActiveConnection = ConnStr
MyComm.CommandText = "Update_User_History"
MyComm.CommandType = 4 '
MyComm.Prepared = true
MyComm.Parameters.append MyComm.CreateParameter("@ExerciseEnd",2,1,4,ExerciseID)
MyComm.Parameters.append MyComm.CreateParameter("@ID",2,1,4,User_History_ID)
MyComm.Execute
if MyComm.Parameters(0)= 1 then
response.write ("<script language='javascript'>alert('成功');</script>")
else
response.write ("<script language='javascript'>alert('错误');</script>")
end if

始终是错误修改不了数据,在sql的中调试存储过程没有问题,可以正常修改。
传过来的两个参数也没有问题,但是不知道哪里出的问题
数据库是mssql 2005
...全文

相关推荐

评论 4
收藏 已收藏
分享
返回顶部
yujingfree
ASP 28,401 成员 356,940 内容