Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Server naming conventions
Message
De
13/07/2005 16:47:47
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
13/07/2005 16:41:38
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01031553
Message ID:
01032409
Vues:
18
>>PKs are used to enforce referential integrity so they only have to be unique. Where they are generated is a different issue. Right?
>
>I guess that's a matter of opinion.

They are clearly two different tasks, but I'll let you off the hook. ;) Here's some food for thought, though. If natural keys are used they certainly would exceed 16 bytes after a child table. So guids are better than natural keys even for joins.

Here's a way to offset some of the performance issues.

http://www.informit.com/articles/article.asp?p=25862

Thanks for your time!

>
>>
>>Integer performance is good, but why does SQL's newid function generate guids?
>
>That's a question for the SQL Server team.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform