Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Database
Message
From
15/11/2006 12:31:39
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
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:
01169949
Views:
9
>>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.

Uniqueness can be enforced with candidate indices. (I still recommend database tables in most cases.)
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform