<%
dim subject
subject=request("subject")
student=session("studentonline")
set conn=server.CreateObject("adodb.connection")
conn.connectionstring="dsn=PaperSelectSystem"
conn.open
set rs=Server.CreateObject("adodb.recordset")
set comm=server.CreateObject("adodb.command")
set comm.activeconnection=conn
comm.commandtype=adCMdStoredProc
comm.commandtext="PaperSelectSystem"
set para1=comm.createparameter("subject",adVarChar,adParamInput,10)
set para2=comm.createparameter("number",adInteger,adParamInput,8)
comm.parameters.Append para1
comm.parameters.Append para2
comm("subject")=subject
comm("number")=student
set result=comm.execute()
%>
---------------------------代码如上--------------------------------------------------------------
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E57)
[Microsoft][ODBC Microsoft Access Driver]非法的字符串或缓冲区长度
set result=comm.execute() 就是指这行 这是怎么回事呀?????????