在线考试系统中的问题。
用ASP+SQL2000开发的在线考试系统,在点“全部交卷”之后,出现错误:
正在为考生:408000020 交卷,请稍等……
Microsoft OLE DB Provider for SQL Server 错误 '80040e31'
超时已过期
/admin_invg.asp,行260
函数代码如下:
function overAll()
//按照考生学号交卷
sql="select * from stuScore where examID="&examID&" and stuStatus<>'over' order by user_id"
set rsStu=conn.execute(sql)
while not(rsStu.bof or rsStu.eof)
response.Write("正在为考生:"&rsStu("user_id")&" 交卷,请稍等……<br>")
response.Flush()
call examOver(rsStu("user_id"),examID)
rsStu.movenext
wend
//算出均分
sql="select avg(stuScore) as examAvg from stuScore where examID="&examID
set rs=conn.execute(sql)
//更新考场状态
sql="update examInfo set examStatus='over',examAvg="&rs("examAvg")&" where ID="&examID
set rs=conn.execute(sql)
response.Write("已经全部交卷,请到<a href=admin_Score.asp>考生成绩管理</a>")
end function
各位大侠多多指教。