Re: adCriteriaAllCols and text columns
From: Vitali Kalinin (vitkalinin_at_yahoo.com)
Date: 04/20/04
- Next message: Warren: "ADO + ClientDataSet + Sybase = no Time fields"
- Previous message: Vitali Kalinin: "Re: Lookupfields in grid.. Disappear and reappear :S"
- In reply to: John Faris: "adCriteriaAllCols and text columns"
- Next in thread: John Faris: "Re: adCriteriaAllCols and text columns"
- Reply: John Faris: "Re: adCriteriaAllCols and text columns"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 20 Apr 2004 15:40:19 +0300
The text, ntext, and image data types cannot be compared or sorted, except
when using IS NULL or LIKE operator (assuming that we are talking about MS
SQL). To address this problem you can add TIMESTAMP column into table.
Regards,
Vitali
"John Faris" <johnfaris@nospam.hotmail.com> сообщил/сообщила в новостях
следующее: news:4084f578$2@newsgroups.borland.com...
> 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: Warren: "ADO + ClientDataSet + Sybase = no Time fields"
- Previous message: Vitali Kalinin: "Re: Lookupfields in grid.. Disappear and reappear :S"
- In reply to: John Faris: "adCriteriaAllCols and text columns"
- Next in thread: John Faris: "Re: adCriteriaAllCols and text columns"
- Reply: John Faris: "Re: adCriteriaAllCols and text columns"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|