visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Languages :: Delphi :: couldn't perform the edit because another user changed the record


By: fatchoi U.S.A.  Date: 13/06/2003 00:00:00  English  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 English  Type : Answer
try to use explicit row locking, if impossible then table locking
By: fatchoi Date: 16/06/2003 18:41:00 English  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 English  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

EContact
browser fav
page generated in 414.825920 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page