Re: ADO UpdateBatch Problems
From: Brian Bushay TeamB (BBushay_at_Nmpls.com)
Date: 09/01/04
- Next message: Brian Bushay TeamB: "Re: ADODataSet event when new recordset loaded?"
- Previous message: Brian Bushay TeamB: "Re: Error when doing an async execute"
- Maybe in reply to: Dave Blake: "Re: ADO UpdateBatch Problems"
- Next in thread: Scott Meikle: "Re: ADO UpdateBatch Problems"
- Reply: Scott Meikle: "Re: ADO UpdateBatch Problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 31 Aug 2004 21:05:08 -0500
>I'm working on an application using Delphi 7 with ADO disconnected datasets
>in batch update mode with an optimistic locking strategy, sitting on top of
>an
>Access 2000 database. The problem that I have is in trying to handle
>concurrency
>errors where two people are editing the same record - calls to UpdateBatch
>don't
>seem to generate any exceptions when record has been changed by another
>user,
>with the effect that if there are two edits of the same field, the second
>users changes
>are always the ones that are posted - I would much rather give the user the
>opportunity to merge or cancel but I
I just did a quick test of this using the NorthWind sample database
I used a TadoDataset ComandText = Select * from Customers
and LockType = ltBatchOptomisic
no other settings changed from the default values.
If I change a record in the application then change it directly in the table
using Access then UpdateBatch I get the appropriate error that the row can not
be located for updating.
-- Brian Bushay (TeamB) Bbushay@NMPLS.com
- Next message: Brian Bushay TeamB: "Re: ADODataSet event when new recordset loaded?"
- Previous message: Brian Bushay TeamB: "Re: Error when doing an async execute"
- Maybe in reply to: Dave Blake: "Re: ADO UpdateBatch Problems"
- Next in thread: Scott Meikle: "Re: ADO UpdateBatch Problems"
- Reply: Scott Meikle: "Re: ADO UpdateBatch Problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|