Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Natural Keys
Message
De
10/03/2015 13:00:26
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Titre:
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01616073
Message ID:
01616596
Vues:
39
>>While on the topic, a similar questions. Are people adding a separate Primary key to many to many join tables or using the two Foreign key fields as that purpose?
>
>I've done both. However, a lot of the basic classes I use tend to expect a single field primary key so I normally just add one to keep things consistent, then add a contraint + index on the two other fields.

This seems consistent and what I have always done thus far. I still like it as creating compound keys seems less efficient for my thinking. Thanks for your input.
Timothy Bryan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform