Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Validation Location
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
SAMBA Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00966053
Message ID:
00966139
Views:
8
If the validation is needed to ensure referential integrity, etc, then it belongs in the database. Otherwise, it belongs in a business object.


>Just a question to get fuel for my upcoming debate. What is the best place to do data validation, a database procedure or in each disparate application that accesses the data or somewhere else? The validation I am referring goes like this...
>
>We have an activity table with millions of records that determines on what day we automatically generate a fax or an email. We have another table that holds all of the email addresses and fax numbers, also millions of records. We have another table that holds the company and another table that holds the contact for that company. Each company may or may not have a contact and each company/contact may or may not have a fax number or email address.
>
>The validation that needs to be put in place, for example, is that a "fax activity" should not be allowed to be inserted into the activity table by the user or by script if the company/contact doesn't have a fax number. Same with emails. Where should the validation occur for this?
>
>TIA for everyone's insight.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform