请问:为什么我在ASP中调用存储过程总是出错?
ypp 2000-03-31 11:19:00 我在ASP中调用存储过程,代码如下:
Sub Session_OnStart
set session("AdoCn")=Server.CreateObject("ADODB.Connection")
session("AdoCn").Open "DRIVER=SQL server;SERVER=mnserver;DATABASE=IntTel;UId=sa;PASSWORD=;"
End Sub
调用时的连接:
set AdoQd=Server.CreateObject("ADODB.Command")
set AdoQd.ActiveConnection =session("AdoCn")
AdoQd.CommandType =adCMdStoredProc ??
AdoQd.CommandText ="TelBusiness"
为什么总出错?
ADODB.Command 错误 '800a0bb9'
The application is using arguments that are of the wrong type, are out of acceptable range, or are in conflict with one another.
/MyProject1/TelBusEnd.asp, (AdoQd.CommandText=adCmdStoredProc)