巴宝莉钱包新款:有个有关ASP的问题

来源:百度文库 编辑:高考问答 时间:2024/04/29 11:14:04
错误类型:
Microsoft JET Database Engine (0x80004005)
操作必须使用一个可更新的查询。
/inc/ClsMain.asp, 第 1425 行
本行内容:
Set Execute = Conn.Execute(Command)
注:Execute是一个函数,函数内容如下
Public Function Execute(Command)
If Not IsObject(Conn) Then ConnectionDatabase
If IsDeBug = 0 Then
On Error Resume Next
Set Execute = Conn.Execute(Command)
If Err Then
err.Clear
Set Conn = Nothing
Response.Write "查询数据的时候发现错误,请检查您的查询代码是否正确。"
Response.End
End If
Else
If ShowSQL=1 Then
Response.Write command & "<br>"
End If
Set Execute = Conn.Execute(Command)
End If
SqlQueryNum = SqlQueryNum+1
End Function

应该使用 rs.open sql,conn,3,3 才能更新数据

请检查文件的读写权限,一般情况在文件的安全属性中要对INTERNET来宾帐号给读写的权限。

检查文件夹的读写权限,放数据库那个文件夹,如果是在本机测的,把everyone的权限全开就行了,如果是服务器就考虑

说实话,你的程序写的有点乱了,使用 connection对象执行sql不会是权限问题,问题应该出在数据库连接或者sql语句上