Page 1 of 1

Automatic updatesql in TMSQuery

Posted: Tue 15 Mar 2005 14:27
by Rudi Hostyn
How can I influence the automatic updatesql in TMSQuery?
I would like to use only one key field in the where clause of the update query. I have set providerflags pfKey in the fieldobject of the key field but that does not work (I do not have an UpdateMode property in TMSQuery). Is there another way to accomplish this task without manually filling in the UpdateSQL property?

Posted: Wed 16 Mar 2005 09:30
by Ikar
The algorithm of the choice key fields in SDAC is greatly optimized and in common case, it uses minimal required set of the fields. According to that in your case several fields are used, there is no any unique key field in the query.

Most probably, changing table structure with specifying an unique key filed will solve the problem

Posted: Thu 17 Mar 2005 11:09
by Rudi Hostyn
Putting a key on the table solved the problem.
Thank you!