Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create tables relation
Message
From
22/11/2006 13:44:02
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
22/11/2006 13:32:50
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01171587
Message ID:
01171876
Views:
6
>>Some temporary directories are required. Also, RI must be disabled - or else, make sure you copy a parent table before you copy the child table.
>
>Hi Hilmar,
>
>Did you develop a technique for refilling the tables - disabling the RI or copying from the parent prior from the child ?

At first, I copied the parent table first, then the child table. The information about parent-child relations can be obtained with adbobjects(ArrayName, "relation"). Only relations where the third part (byte) is "R" (restrict) are relevant.

Later, I disabled the RI instead. I can do this, because I use TaxRI instead of standard Visual FoxPro RI. I recommend this tool (or perhaps other alternative RI builders, which I don't know).

TaxRI produces code which is about 1/10 of the size of standard RI code, and much easier to debug (in case you ever need to debug RI).

It also has some additional options, not found in standard RI - like the option to disable RI temporarily.

If you are interested, search the download section for LastName = "Meester".

>Do you use different names ?

Same table and database names, different directories.
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
Next
Reply
Map
View

Click here to load this message in the networking platform