Board index » delphi » deadlock update conflicts with concurrent update.
Forrest Lo
![]() Delphi Developer |
Tue, 07 Sep 2004 12:57:21 GMT
|
Forrest Lo
![]() Delphi Developer |
Tue, 07 Sep 2004 12:57:21 GMT
deadlock update conflicts with concurrent update.
Dear All,
I got the error message "deadlock update conflicts with concurrenct update' procedure TfrmCustomer.btnSaveClick(Sender: TObject); procedure TDM.tblCustomerAfterPost(DataSet: TDataSet); Thanks & Best Regards, |
Craig Stuntz [TeamB
![]() Delphi Developer |
Tue, 07 Sep 2004 22:36:13 GMT
Re:deadlock update conflicts with concurrent update.In article <3c9ab9af_1@dnews>, forr...@aliaspro.com says... Quote
transactions. When a transaction changes a record, any further changes to that record by other transactions will deadlock until the first transaction commits. Generally speaking, you should commit after any change you want to HTH, -Craig -- |
Forrest L
![]() Delphi Developer |
Wed, 08 Sep 2004 10:32:56 GMT
Re:deadlock update conflicts with concurrent update.Hi Craig, I found that IBTransaction.InTranscation is still TRUE after Thanks & Best Regards, "Craig Stuntz [TeamB]" <cstuntz@no_spam.vertexsoftware.com> ???g??ls?D Quote> In article <3c9ab9af_1@dnews>, forr...@aliaspro.com says... |
Team
![]() Delphi Developer |
Wed, 08 Sep 2004 11:00:33 GMT
Re:deadlock update conflicts with concurrent update.QuoteForrest Lo wrote: transaction context active. That is the difference between Commit and CommitRetaining. -- |
Forrest L
![]() Delphi Developer |
Wed, 08 Sep 2004 11:06:32 GMT
Re:deadlock update conflicts with concurrent update.Hi, Craig, So, Should I use Commit instead of CommitRetaining to prevent deadlock? Thanks & Best Regards, "Jeff Overcash (TeamB)" <jeffoverc...@mindspring.com> Quote
|
Team
![]() Delphi Developer |
Wed, 08 Sep 2004 11:09:10 GMT
Re:deadlock update conflicts with concurrent update.CommitRetaining should have no more affect on a deadlock than Commit. No one has ever presented a test case that shows this. The only difference between the two is commit ends the transaction, but CommitRetaining leaves the transaction going from the commit point. QuoteForrest Lo wrote: Jeff Overcash (TeamB) (Please do not email me directly unless asked. Thank You) This sad little lizard told me that he was a brontosaurus on his mother's side. I did not laugh; people who boast of ancestry often have little else to sustain them. Humoring them costs nothing and adds to happiness in a world in which happiness is in short supply. (RAH) |
Forrest L
![]() Delphi Developer |
Wed, 08 Sep 2004 11:45:40 GMT
Re:deadlock update conflicts with concurrent update.Hi, Craig, It still a deadlock if two users edit the same record. The first user Thanks & Best Regards, "Jeff Overcash (TeamB)" <jeffoverc...@mindspring.com> Quote> CommitRetaining should have no more affect on a deadlock than Commit. No |
Team
![]() Delphi Developer |
Wed, 08 Sep 2004 12:00:56 GMT
Re:deadlock update conflicts with concurrent update.QuoteForrest Lo wrote: back no one else will be able to work with the record. Quote> The secord user will be deadlock. How to IBTrasnaction is basically a snapshot mode. Quote
Jeff Overcash (TeamB) (Please do not email me directly unless asked. Thank You) This sad little lizard told me that he was a brontosaurus on his mother's side. I did not laugh; people who boast of ancestry often have little else to sustain them. Humoring them costs nothing and adds to happiness in a world in which happiness is in short supply. (RAH) |
1. Deadlock Update conflicts with concurrent update
2. Deadlock Update Conflicts with Concurrent Update
4. Cached Updates QUESTION: Sorting table of updated and non-updated records
5. 10 non-concurrent users, Pdox, Cached updates:
6. how to catch concurrent update errors?
7. how to update concurrent transaction ?
8. Access 97 limitations on concurrent updates?
9. 10 non-concurrent users, Pdox, Cached updates:
10. Deadlock when updating a row twice within a single DB transaction