ASP_80004005|Operation_must_use_an_updateable_query

本文解决了一个特定错误:当使用ASP页面更新Access数据库时出现的'Operation must use an updateable query'错误。解决方案包括调整文件权限和使用UDL文件来确保安全性和正常的数据更新操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Error:

2004-04-27 00:36:14 195.68.81.10 - 195.68.81.10 8123 POST /ResolveSpam.asp |86|80004005|Operation_must_use_an_updateable_query. 500 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0)

Solution:

add the privilege of ASPNET and IUSR_ to the db folder that your dbfile locate in

Those errors look like they're caused by your ASP pages not being able to update the Access .mdb database. Please note that IIS normally uses the IUSR account to access resources on the web server. That accout will need write access to the directory the Access database resides in. So if you're using NTFS you'll need to grant RWD (read write delete) permissions to the database directory. It's not enough to give the RWD rights to the mdb file itself because MDAC creates a .lck file as well when updating the database in the same directory.

If you are worried about security (you probably are since it looks like you tightened down security on the server - by default Microsoft allows Everyone FULL control, very frightening...) please note that this is the reason we recommend using UDL files. If you place the mdb file in a directory outside the web area and/or outside any virtual directories, the IUSR will not be able to access that directory. But your ASP code is using an UDL file for the connection, which will tell MDAC about the physical location of the file, and being outside the web are will not pose an obstacle. MDAC will be able to read the mdb file, but the IUSR will not.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值