[DataSet Error] Record not found or changed by another user
2007-05-16 17:21
471 查看
-- the source of the problem: use the datetime field value to locate the record
-- the particular SQL statement generated by delhpi ADOExpress
exec sp_executesql N'delete from test_table where
sequence_key_id = @P1 and
staff_id = @P2 and
trn_date = @P3 and
type = @P4 and
start_time = @P5 and
finish_time = @P6 and
completed = @P7 and
created_user = @P8 and
created_date = @P9 and
modified_user = @P10 and
modified_date = @P11
',N'@P1 varchar(50),@P2 varchar(50),@P3 datetime,@P4 varchar(50),@P5 datetime,@P6 datetime,@P7 int,@P8 varchar(50),@P9 datetime,@P10 varchar(50),@P11 datetime','1','2',
'2007-02-05 00:00:00:000','0','2007-02-05 18:42:26:000','2007-02-05 18:42:26:000',0,
'Local/David','2007-02-04 18:42:32:000','Local/David',
'2007-02-05 18:42:26:000'
-----------------
actually, it's expected to be:
delete from test_table where
sequence_key_id = @P1
solution:
-----------------
1) set the providerflag
sequence_key_id: [pfInKey, pfInUpdate, pfInWhere]
2) set the provider's UpdateMode to upWhereKeyOnly. Yeah!!!!!
-- the particular SQL statement generated by delhpi ADOExpress
exec sp_executesql N'delete from test_table where
sequence_key_id = @P1 and
staff_id = @P2 and
trn_date = @P3 and
type = @P4 and
start_time = @P5 and
finish_time = @P6 and
completed = @P7 and
created_user = @P8 and
created_date = @P9 and
modified_user = @P10 and
modified_date = @P11
',N'@P1 varchar(50),@P2 varchar(50),@P3 datetime,@P4 varchar(50),@P5 datetime,@P6 datetime,@P7 int,@P8 varchar(50),@P9 datetime,@P10 varchar(50),@P11 datetime','1','2',
'2007-02-05 00:00:00:000','0','2007-02-05 18:42:26:000','2007-02-05 18:42:26:000',0,
'Local/David','2007-02-04 18:42:32:000','Local/David',
'2007-02-05 18:42:26:000'
-----------------
actually, it's expected to be:
delete from test_table where
sequence_key_id = @P1
solution:
-----------------
1) set the providerflag
sequence_key_id: [pfInKey, pfInUpdate, pfInWhere]
2) set the provider's UpdateMode to upWhereKeyOnly. Yeah!!!!!
相关文章推荐
- 数据保存时,出现‘record not found or changed by another user’错误信息的解决办法
- 数据保存时,出现‘record not found or changed by another user’错误信息的解决办法
- record not found or changed by another user
- clientdataset“Record not found or changed by another user”问题
- 关于Record not found or changed by another user的问题
- 数据保存时,出现‘record not found or changed by another user’错误信息的解决办法
- 问题-"Record not found or changed by another user"
- Clientdataset关于record change by another user错误的总结
- An EJB Exception:The user-provided class "XXXX" needed by the EnterpriseBean could not be found or loaded.
- Error: APP-ONT-250268: Record is currently being worked on by another user, Please try to update it
- Device /dev/sda3 not found (or ignored by filtering)
- Oracle 数据库 Record is locked by another user 问题解决办法
- Caused by: java.io.FileNotFoundException: dbcpconfig.properties (No such file or directory)
- 如何解决:ERROR: the user data image is used by another emulator. aborting 的问题
- Row not found or changed. Linq 找不到行或行已更改
- ERROR: the user data image is used by another emulator. aborting
- ChangeConflictException:Row not found or changed 找不到行或行已更改
- ERROR! MySQL manager or server PID file could not be found!
- pl/sql死锁情况:record is locked by another user
- Oracle 数据库 Record is locked by another user 问题解决办法