Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Some RI ideas
Message
 
 
To
17/04/2007 15:17:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01216870
Message ID:
01216975
Views:
16
>>>>Thanks a lot in advance.
>>>
>>>I would use RI even for the simplest of applications - it is easy to use, and it does give you some advantages (data integrity, simplification in some cases through cascading delete).
>>>
>>>Especially for more demanding applications, I would ADDITIONALLY put validation rules to do some checks before RI kicks in; this is to avoid the user getting unintelligible (for him) messages like "trigger failed".
>>
>>BTW, do you think I'm OK using native RI?
>
>Yes. Other programs like TaxRI give you additional benefits, but that might not be relevant for a small system.
>
>> And how should I easily move my database changes without using SDT?
>
>Personally, I keep an empty copy of the database, and I have a program that basically does an APPEND FROM for each table, from the user data to the empty structure (which is in a temporary directory, of course).
>
>I can't publish it here, because it relies heavily on VFX functions, but perhaps you can do something similar.
>
>Note that if there is a parent-child relation (and if there is an "R" in the third part of RI restrictions), the parent table has to be copied before the child table.

I see. Yes, I may try to write something like that to apply structural changes. It also helps to eliminate deleted records.

Thanks again.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform