Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Theoretical issue - how do you handle this?
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01001223
Message ID:
01001402
Views:
17
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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform