含标识列数据窗口更新,Row changed between retrieve and update.问题
来源:互联网 发布:淘宝零食店铺名字大全 编辑:程序博客网 时间:2024/06/05 22:52
问题情况描述:
用含标识列的表做了一个数据窗口,Update properties中,设置的Key Columns,Identity Column属性也设置啦。
第一次UPdate()时没有问题,再更新了其他列,再次UPdate(),提示
Row changed between retrieve and update.
No changes made to database.
的错误,SQL 语句中where条件后的标识列是Null。
问题解决:
经过几天的Google搜索,下边的帖子让我找到了问题的根本原因,原来是数据库得到标识列值方法不同造成的,学到了新知识。
http://bbs.csdn.net/topics/340112294
我没有通过修改数据连接配置文件的方法解决问题,因为客户太多,让他们去修改ini文件不方便,也怕修改这个属性对其他地方造成影响。
最终,每次Update()之后,都retrieve()一次,再次UPdate()时就没问题啦。
- 含标识列数据窗口更新,Row changed between retrieve and update.问题
- Row Changed Between Retrieve and Update
- 【PB 】“Row changed between retrieve and update” 经典错误处理
- mysql update between and
- Oracle开发之:窗口函数 (转) rows between unbounded preceding and current row
- Oracle开发之:窗口函数 (转) rows between unbounded preceding and current row
- Oracle开发之:窗口函数 (转) rows between unbounded preceding and current row
- Oracle开发之:窗口函数 (转) rows between unbounded preceding and current row .
- Oracle开发之:窗口函数 3( rows between unbounded preceding and current row)
- Oracle开发之:窗口函数 (转) rows between unbounded preceding and current row
- Vs2005中更新父子表标识列的问题
- SQL Server数据库自增长字段标识列的更新(update)修改终极操作方法
- 标识列顺序排列问题
- update 多列更新
- 【PB】sqlerrtext为:mismatch between retrieve columns and fetch
- 【PB】sqlerrtext为:mismatch between retrieve columns and fetch columns
- PB报错,Mismatch between retrieve columns and fetch columns
- 数据窗口,Update属性的问题
- 手工完全恢复(所有数据文件丢失)
- WINDOW进程通信的几种方式
- JBPM5
- Agile Development (I)
- Portlet开发入门实例
- 含标识列数据窗口更新,Row changed between retrieve and update.问题
- ORA-28002: 7 天之后口令将过期的解决方法 .
- Java协程框架----Kilim实现机制解析
- ecllipse常用快捷键
- ant的学习和使用
- C++ Factory & AbstractFactory 模式
- 数塔
- 【转】javascript中的this
- Cookie/Session入门