Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Char vs Varchar - Performance
Message
De
01/02/2005 11:13:57
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Divers
Thread ID:
00982531
Message ID:
00982685
Vues:
38
Sergey,

It sounds like you and I don't agree on the use of NULLs. We use NULL for most columns, unless it's a PK or an FK that *must* be populated. IMHO, a NULL is almost always different than empty. Even for character data.

~~Bonnie



>>>Yes, in SQL 2000 fixed lenght data types always take the same space regardless what value is stored in it.<
>>
>>Another good reason to use varchars!!! <g>
>
>I'm not sure why would you want to use Null in the char/varchar field in the first place unless empty values is not the same as Null.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform