Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Varchar(max) vs Varchar(400)
Message
De
28/08/2013 10:42:12
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 6.5 and older
Application:
Web
Divers
Thread ID:
01581593
Message ID:
01581599
Vues:
58
SQLServer always stores only what it needs, even if the column is Varchar(400). Note that you cannot index varchar(MAX). One other thing. NVarChar over VarChar is generally a better choice and recommended as it supports Unicode.

>To store the emails in separate rows I would have to create a child table. This will complicate the design where it is not really necessary. These - extra emails - will be used by only a few (or just one or two) customers. So adding a child table to store the emails, IMO, is overkill. But from your words that "SQL Server will only store what it needs to" do I understand that Varchar(max) will not add more load than, say Varchar(400)?
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