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 

How to create a combined index?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (ADO)
View previous topic :: View next topic  
Author Message
Lothar Brandner
Guest





PostPosted: Thu Apr 26, 2007 5:33 pm    Post subject: How to create a combined index? Reply with quote



Hello,
I am trying to set up a combined index for an m:n connection between two
tables. There exists an MS-Access table C which holds the lookup values from
table A and B. Every possible combination may only exist once.So I defined
the index for Table C as a unique combination of both the values from table
A and B. This works fine: MS Access does not acceppt double
indices(combinations of values from table A and B).
In my C++-Application (BDS 2006 Enterprise) I use three TADOTables for Table
A, B and C.
In TAdoTable C I defined two additional data elements as foreign keys for
table A and B.
Now I can select all possible values each for table A and B, but I could not
find a way how to avoid double combinations.
If the application's user accidentally generate a combination which already
exists in the database the application throws an exception (this is correct,
I told MS access not to accept double indices).
Is there a simple way to tell ADOTable C not to accept multiple indices?
Greetings
Lothar
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder 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.