Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create tables relation
Message
De
22/11/2006 13:44:02
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
22/11/2006 13:32:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01171587
Message ID:
01171876
Vues:
7
>>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform