Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Theoretical issue - how do you handle this?
Message
 
 
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:
01001458
Vues:
16
4-1

In this question I was more concerned about lookup tables. Of course, for real parent and child we must have triggers in place. I do agree with having them for lookup as well, but want to find out the general practice.


>Nadya,
>
>The database must protect it's integrity via foreign keys. You have no control that your business layer will be the only way those tables are accessed. One accidental slip on an update or delete with no FK constraint in place and you are scrambling to try to recover the table.
>
>
>>We just had a discussion between developers about how do we usually handle lookup codes. E.g.suppose you have a table, which has several coded fields, which could be ever empty (NULL) or valid codes. Do you create a trigger (restrict) for Insert/Update/Delete or do you simply handle this in the application itself. Also I'd like to hear about your experience with different back-ends. I see advantages and disadvantages of both approaches and would really appreciate your input on the matter. So, basically I'm conducting a pool.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform