日期:2014-05-17  浏览次数:21028 次

Current Recordset does not support updating.奇怪 出错了
在godaddy买了个空间,把数据库和代码传上去,发现出错了

Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype


我在本地测试是完好的。

怎么解决呢

------解决方案--------------------
记录集打开方式对吗?
rs.Open sql, conn, 1, 3
1, 3可以做更新操作, 1, 1不行
------解决方案--------------------
1楼正解,如果还是不行的话,看下服务器上的数据库文件是否有写入权限。
------解决方案--------------------
VBScript code

<%
sql = "select * from biao where id=1"
set rs = createobject("adodb.recordset")
rs.cursorLocation = 3
rs.open sql,conn,1,3
If Not (rs.bof and rs.eof) Then
  rs("txt") = "xxxx" '用英文试试看, 国外的服务器最好用英文版本的.mdb文件
End If
rs.update
rs.close


%>

------解决方案--------------------
改一下:
VBScript code

<%
sql = "select * from biao where id=1"
set rs = createobject("adodb.recordset")
rs.cursorLocation = 3
rs.open sql,conn,1,3
If Not (rs.bof and rs.eof) Then
  rs("txt") = "xxxx" '用英文试试看, 国外的服务器最好用英文版本的.mdb文件
  rs.update
End If
rs.close
set rs = nothing
conn.close
set conn = nothing
%>

------解决方案--------------------
IUSR_ **** 这个用户没有读写权限, 你可以询问下空间的目录权限, 应该有读写权限的.
------解决方案--------------------
提示错误 怎么变掉了?之前提示是locktype的错误。

'80004005' 就是权限问题了。要找供应商设置mdb的写权限了。