adCriteriaAllCols and text columns
From: John Faris (johnfaris_at_nospam.hotmail.com)
Date: 04/20/04
- Next message: Sandro Brigantini: "Re: ftBCD"
- Previous message: Arnoud van Bers: "Lookupfields in grid.. Disappear and reappear :S"
- Next in thread: Vitali Kalinin: "Re: adCriteriaAllCols and text columns"
- Reply: Vitali Kalinin: "Re: adCriteriaAllCols and text columns"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 20 Apr 2004 11:04:45 +0100
Hi all.
Quite often we come across the situation where a user will type some notes
into a record at the exact same time that another user decides to do the
same thing at the same time. With the BDE one of the users would have got
an error back about another user changing the record. However, with ADO we
don't see the same thing. I've figured out this is because ADO defaults to
using an Update statement containg only the modified fields in the where
clause whereas the BDE would use all columns in the where clause. I read
that you can get around this by the following code in the beforepost and
beforedelete events AdoQuery1.Properties['Update
Criteria'].Value:=adCriteriaAllCols;
This does indeed populate the where clause with all columns but with the
exception of sql server text columns. So what happens is user1 changes the
notes and posts the changes whilst user2 is looking at the original notes.
Then user2 decides to add to the notes and posts them. They don't get an
error as ado has not included the text column in the where clause of the
update statement. What can be done to get around this problem?
TIA.
John.
- Next message: Sandro Brigantini: "Re: ftBCD"
- Previous message: Arnoud van Bers: "Lookupfields in grid.. Disappear and reappear :S"
- Next in thread: Vitali Kalinin: "Re: adCriteriaAllCols and text columns"
- Reply: Vitali Kalinin: "Re: adCriteriaAllCols and text columns"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|