Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NULL or empty ?

Status
Not open for further replies.

Camel

Programmer
Aug 13, 2000
45
GB
Hello Experts,
Recentlly i start developing an application in VB.net and SQL server. On the server there are some fields that can be empty. I was wondering what is the best practice, use empty values or NULLs for the non required fields?

In the tables i got dates, currency, strings.
The strings are the easyest. For the currency i could add a boolen flag to mark if there was a paiment or not, but what about the date? is a NULL value prefered than 01/01/1900

Camel
 
Up to you. If you put in a default date, what will it be...and what will it mean to the application and/or user?
-Karl

[red] Cursors, triggers and user-defined functions are an axis of evil![/red]
[green]Life's uncertain...eat dessert first...www.deerfieldbakery.com[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top