ASP+SQLSERVER使用过程的问题。
exten 2004-01-26 08:58:02 当在ASP执行COMMAND语句时,系统提示下列错误,请问怎么解决,ASP如何才能调用SQLSERVER的过程???:
Microsoft VBScript 编译器错误 错误 '800a03f6'
缺少 'End'
/iisHelp/common/500-100.asp,行242
ADODB.Command 错误 '800a0bb9'
参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。
/zsl/cf~222.asp,行14
相关过程:
CREATE procedure usp_updateprices
@type char(12)
as
update titles
set price=price*(1+10/100)
where type=@type
GO
相关ASP文件:
第十四行就是这一行:cmdupdate.commandtype=adcmdstoredproc
<%
set conn=server.createobject("adodb.connection")
conn.open"Provider=SQLOLEDB;Data Source=127.0.0.1;UID=sa;PWD=yourpassword;DataBase=pubs"
dim cmdupdate
dim lngrecs
dim strtype
dim curpercent
strtype="business"
set cmdupdate=server.createobject("adodb.command")
cmdupdate.activeconnection=conn
cmdupdate.commandtext="usp_updateprices"
cmdupdate.commandtype=adcmdstoredproc
cmdupdate.Parameters.Append cmdupdate.CreateParameter("@type",adchar,adparaminput,12,strtype)
cmdupdate.execute
set cmdupdate=nothing
%>
<html>
<head>
<title>Untitled</title>
</head>
<body>
</body>
</html>