Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Null
Message
From
04/06/2009 15:27:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
04/06/2009 11:10:08
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Re: Null
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01403676
Message ID:
01403788
Views:
47
>I understand NULLS have a special purpose... but I think I'm starting to abuse it. For example, if we have a text comments area that saves to a varchar field, would it be proper to use NULL if the user left the text area blank, or would it be proper to use a blank string?

Someone said that "nulls are evil" which I do agree. IMHO do not use a NULL for such a case and reserve to places where it does have meaning (do you really care difference between a comment that is null or blank - what would be an entered and blank comment? a space? Ugly ugly ugly).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform