Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Varchar(max) vs Varchar(400)
Message
 
 
À
29/08/2013 11:20:31
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:
01581674
Vues:
44
>>Yes, Craig is always correct :). And trust me I know that in this particular case my approach won't bite me.
>>
>
>It probably won't but I just throw out for the sake of argument that the issue is really a mindset when designing. I assume your argument in favor of munging the emails together in one field is that it is less work.
>
>But given that an email address is only useful if it is valid, you need to at very least use a regex validation (this is true even for the 99% that only have one address.)
>
> Much easier to do if you know the column only holds one address.
>
>Then there is the need to parse the column if you want to send an email to both addresses (or three or four) So now anytime you want to use the info in the email address column you have to determine how many addresses it holds and if it is necessary to parse it.
>
>I could easily go on.
>
>Child tables should be pretty elementary to add to a design and make so many tasks easier that I think like a lot of others here I'd really recommend normalization as just a habit of mind.
>
>I grew up in the DBase, Foxbase, Foxpro world and I'm very familiar with the mindset that puts design second to just getting it done or being "good enough" but I grew out of it quickly when I started using SQL Server and .NET. and clients expected new requirements wouldn't break an app.
>
>I learned long ago that doing it right is a lot less work and decoupling is a lot less brittle.
>
>Not saying in this case you don't know the circumstances of your app better than I, but wanted to throw this perspective in the mix.

Thank you for your input.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform