Languages :: Delphi :: couldn't perform the edit because another user changed the record |
|||
| By: fatchoi |
Date: 13/06/2003 00:00:00 |
Points: 50 | Status: Answered Quality : Excellent |
|
the following code raised the exception: "couldn't perform the edit because another user changed the record" staff_table:='d_staff_info'; s:='select * from '+staff_table+' where staffid='+ inttostr(staff.fieldvalue['staffid']); dmsharedb.dbsql.RequestLive:=true; dmsharedb.dbsql.Active:=false; dmsharedb.dbsql.sql.Clear; dmsharedb.dbsql.SQL.Add(s); dmsharedb.dbsql.Active:=true; dmsharedb.dbsql.edit; dmsharedb.dbsql.fieldvalues[dmsharedb.dbsql.Fields[0].FieldName] :=staff.fieldvalue['staffid']; stafftodb(dmsharedb.dbsql,staff); dmsharedb.dbsql.Post; dmsharedb.dbsql.active:=false; result:=true; |
|||
| By: VGR | Date: 13/06/2003 18:28:00 | Type : Answer |
|
| try to use explicit row locking, if impossible then table locking |
|||
| By: fatchoi | Date: 16/06/2003 18:41:00 | Type : Comment |
|
| how can i use row locking in delphi 7.0 the database is sql server 7.0. thanks. |
|||
| By: 123456 | Date: 20/06/2003 15:45:00 | Type : Comment |
|
| Hi, I think this was existed in sql-server databases. I see and set this in access DB on this location Tools/options/advanced May be exist in sql.server(ms family) regards hamid reza |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








