分享

写回答

发帖

[提问] 更新语句出错insert-update

GoDaddy GoDaddy 2093 人阅读 | 2 人回复

发表于 2010-3-2 09:59:31 | 显示全部楼层 |阅读模式

更新语句出错insert-update,但查询语句没有问题,不知道是不是主机数据库权限的问题呢!
Server Error in '/diybst' Application.
--------------------------------------------------------------------------------

Operation must use an updateable query.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: Operation must use an updateable query.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

回答|共 2 个

add.c

发表于 2010-3-2 10:24:16 | 显示全部楼层

从网上找的:
在asp.net 开发环境下,用jet 4.0连接access数据库, 有时会产生Operation must use an updateable query,这是由于相关用户mdb文件没有Modified权限导致的,在xp系统下,asp.net的用户是aspnet, win2003和vista,是NETWORK SERVICE账号。将其设置具有modified权限就可以了。如果设置了Asp.net Impersonation enabled,那账号是 IUSR_machinename。
RAKSmart

xixigu

发表于 2010-3-2 14:21:10 | 显示全部楼层

原帖由 add.c 于 2010-3-2 10:24 AM 发表
从网上找的:
在asp.net 开发环境下,用jet 4.0连接access数据库, 有时会产生Operation must use an updateable query,这是由于相关用户mdb文件没有Modified权限导致的,在xp系统下,asp.net的用户是aspnet, win2003和vista, ...



那个服务器上的modified权限在哪设置呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则