Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Theoretical issue - how do you handle this?
Message
De
04/04/2005 12:46:06
Donald Lowrey
Data Technology Corporation
Las Vegas, Nevada, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01001223
Message ID:
01001262
Vues:
16
Hi Madya

The question is whether you control data entry with a rule a) enforced in the application code or b) by the database.

My take is that there is no best answer, but rather a case of perspective. SQL and Oracle people will probably say use table rules. I go the otherway and try to have a business rule in the code to handle it. Why? Because I might want to switch database engines (VFP to MS SQL or mySQL). My belief is that I will have less refactoring to do if I enforce all of the rules in the application, fewer places to look when something goes wrong. Not to be misleading, I do use RI, but the triggers refer to code.

- Don Lowrey
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform