BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Filtering affect update?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
HarisCo!
Guest





PostPosted: Tue Feb 17, 2004 10:29 am    Post subject: Filtering affect update? Reply with quote



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





PostPosted: Tue Feb 17, 2004 4:43 pm    Post subject: Re: Filtering affect update? Reply with quote



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





PostPosted: Wed Feb 18, 2004 7:26 am    Post subject: Re: Filtering affect update? Reply with quote



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





PostPosted: Wed Feb 18, 2004 11:12 am    Post subject: Re: Filtering affect update? Reply with quote

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





PostPosted: Wed Feb 18, 2004 11:44 am    Post subject: Re: Filtering affect update? Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.