Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Null
Message
From
04/06/2009 11:38:43
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:
01403692
Views:
41
>>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?
>
>I am not a big fan of nullable fields unless it is needed.
>I prefer to store an empty string instead of a null.
>Some people us nullable fields to indicate that the user did not supply information for that field (did not enter that textbox, if they entered the textbox but didn't type anything then an empty string is stored in the DB).
>Just my $0.02. I don't think there is a proper way

Alright... this is exactly the other option (opposite of John's) that I was considering.
Very fitting: http://xkcd.com/386/
Previous
Reply
Map
View

Click here to load this message in the networking platform