Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Server naming conventions
Message
De
13/07/2005 14:31:10
 
 
À
13/07/2005 12:54:22
Mike Yearwood
Toronto, Ontario, Canada
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:
01032338
Vues:
14
PKs are used to enforce referential integrity, which is a function of the DB...hence they should be generated there. Additionally, using an integer allows you to use a clustered index, which improves performance.


>I've been leaning towards using guids as the PK all the time. It certainly takes longer to generate, but as I also don't have SQL generating the PK, since it's sent in the update, the performance is distributed from the server to the clients - whatever they are.
>
>I'd like to hear your thoughts on that, if you can spare some time?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform