我在asp网页设计中出现以下问题:
<%
name1=request("VoteOption")
set conn=Server.CreateObject("ADODB.Connection")
set myrecordset=Server.CreateObject("ADODB.RecordSet")
sql="select*from vote where Name='"&trim(name1)&"'"
conn.open"Driver={SQL Server};server=chy;uid=sa;pwd=;database=test1"
myrecordset.open sql,conn
myrecordset("Grade")=myrecordset("Grade")+1
myrecordset.Update
myrecordset.Close
set myrecordset=Nothing
Response.Redirect"OnlineSurvey.asp"
%>
错误是:
ADODB.Recordset 错误 '800a0cb3'
当前记录集不支持更新。这可能是提供程序的限制,也可能是选定锁定类型的限制。
/chy/xuesheng/vote.asp,行 9