Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Natural Keys
Message
 
À
02/03/2015 08:30:32
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:
01616091
Vues:
50
>Here at my job we have a database modeler in our group. He is insistent that all tables use 'Natural Keys' and not surrogate keys. I am not trying to start a battle or anything, but is this really even still a debate? It does not matter how much logical reason I provide him, he is propagating his plan across the company and it does not seem to matter what the impact will be. This is a global company in 140 countries with data centers all over the world.
>
>My only questions is: Has something changed and I missed it? We are talking about values that users see and will want to change being used as primary keys on the tables.

As Janice Booth says, "Natural Keys aren't". I don't have a problem with setting up natural keys as candidates, but in every case where some has said "this value will always be unique/never change" they've lied <g>.

Given the repercussions of getting this wrong, it's probably worth pushing harder (is there anyone else there who can help support you so it's not just a matter of you vs the database person)? Decisions like this make me crazy. Let's suppose, out of hundreds of tables they happen to choose a natural key and there is a business change that means that natural key now suddenly needs one more field to make it unique. You've literally just broken every query that touches that table and will have to add a new field to every other table that references it, plus fix all of your queries. He's literally setting you up for a huge headache in the future (not if, when). Insane.

Everyone is going to be living with (and suffering with) those decisions, so it's worth a bit of a fight.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform