Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
No Nulls Allowed
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01094032
Message ID:
01094042
Vues:
11
>Can someone explain to me why Nulls should not be allowed in a database regardless of what type of field it is? TIA

Many reasons. One example:
- You have a client app that enters contact information. You have required fields such as FName, LName and Phone which are the minimum info you want on a contact. Your client app is properly done to not allow entries without filling these three fields.

Do you rely entirely on the app or do you also protect the database entries? Of course you do the latter (you could receive infor from different sources including web-pages). You create a rule or set of rules to avoid entering blank data. Call me paranoid but in this case I don't allow nulls as a further precaution. NULL to me means -I don't know- what goes here. An entry of Name and Phone as "I don't know" is not valid in a contact table.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform