Microsoft OLE DB Provider for SQL Server 错误 '80040e07'
在“在线考试系统”中登录了,但单击开始考试时出现:
Microsoft OLE DB Provider for SQL Server 错误 '80040e07'
将 nvarchar 值 'hyj' 转换为数据类型为 int 的列时发生语法错误。
/MySystem/test.asp,行 8
代码如下:
set rss=conn.execute("select * from examination where studentnumber="&session("number")&" and (pass=0 or makeup<>0) order by examinationid desc ") 这就是第八行。 studentnumber的数据类型是nvchar.