Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Null
Message
From
04/06/2009 11:44:29
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:
01403699
Views:
37
>>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?
>
>The NULLs require special handling in queries and in front end. My rule is not to use NULLs unless it's necessary:
>- In datetime columns
>- Foreign keys
>- Any other case where NULL is significant (represents absence of data or N/A).

Thank you for your input. How do you hande "0" vs. nothing in a numeric field (or is this one of the special instances)?
Very fitting: http://xkcd.com/386/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform