| View previous topic :: View next topic |
| Author |
Message |
HarisCo! Guest
|
Posted: Tue Feb 17, 2004 10:29 am Post subject: Filtering affect update? |
|
|
I have some filtered rows in my filtered table. When I try to change one
field I got next message:
"Key column information is insufficient or incorect. Too many rows were
affected by update."
I tried to change data in Field (MEMO Type from DBMemo) which is different
from criteria field. You
How I can change data without problems?
|
|
| Back to top |
|
 |
Mike Collier Guest
|
Posted: Tue Feb 17, 2004 4:43 pm Post subject: Re: Filtering affect update? |
|
|
| Quote: | "Key column information is insufficient or incorect. Too many rows were
affected by update."
|
Check if the table has a primary key.
--
Mike Collier
www.adoanywhere.com
|
|
| Back to top |
|
 |
HarisCo! Guest
|
Posted: Wed Feb 18, 2004 7:26 am Post subject: Re: Filtering affect update? |
|
|
That's correct. But I must have duplicate values in field of my Primary
table. Because of that I use AfterScroll. I try to make relations with
filtering. I can not setup two keys in MasterField property.
Can you give me advice,
Thank's
|
|
| Back to top |
|
 |
HarisCo! Guest
|
Posted: Wed Feb 18, 2004 11:12 am Post subject: Re: Filtering affect update? |
|
|
For all with same problem:
Got to Table and in Properties change LockType from Optimistic to
ltBatchOptimistic.
Good Luck
|
|
| Back to top |
|
 |
Viatcheslav V. Vassiliev Guest
|
Posted: Wed Feb 18, 2004 11:44 am Post subject: Re: Filtering affect update? |
|
|
And you will have the same problem when calling UpdateBatch(). You should
add additional column that will be unique and make it primary key.
//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)
"HarisCo!" <jahare (AT) gmx (DOT) net> сообщил/сообщила в новостях следующее:
news:4033491b (AT) newsgroups (DOT) borland.com...
| Quote: | For all with same problem:
Got to Table and in Properties change LockType from Optimistic to
ltBatchOptimistic.
Good Luck
|
|
|
| Back to top |
|
 |
|