Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Database
Message
From
15/11/2006 05:21:19
 
 
To
15/11/2006 05:05:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01169752
Message ID:
01169756
Views:
8
>i used to make projects with several tables all in one database. regularly i would have problems with validation of databases for various reasons. it was solvable but my intervention was always necessary.
>
>recently i made a project using free tables instead of putting all into the database.
>
>i found no change in speed or the way i programed or in the way i used my SQL commnands.
>
>so my question is what is my advantage of using the database in the first place (other than being able to use more than 10 characters as a table name).
>
>i found using free tables a lot easier with more peace of mind.

Well Referential Integrity for a start (a BIG plus), business rules - embedded field validation, captions that come with each field when placed on a form, the ability to stipulate what control class goes with each field. IOW, you drag a field from a table list onto a form and it's there complete with class, a message when focused on, field validation, a default value if wished and RI.

Imagine you delete an Order rec, which has, in another table, a series of order lines. You can set RI rules to delete all those lines pertaining to the Order; Suppose you have a company Department rec, and go to delete the dept. RI can prevent you from doing so until you have reassigned all its employees to another dept.

All this you'd need to code in your form otherwise.

Oh, and tables in a dbc can have a primary index, not available with free tables. Its uniqueness is enforced by VFP for you.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform