Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Relationship Deletion ?
Message
 
À
09/07/2002 00:10:53
Wally Noll
Double Aa Builders
Mesa, Arizona, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00676354
Message ID:
00676661
Vues:
22
That is a good idea, doing it on the DBC directly.
This is for a "universal" pack/index routine, and the relations will get in the way, so I want to purge the relations up-front and do my indexing and etc and then create them myself again. I'm definitely making a backup before I start, though. :)

Thanks to dF too.

>Steve,
>
>There is a different way of doing that.
>
>USE Data\MyData.dbc
>DELETE FOR ObjectType='Relation'
>USE IN MyData
>
>You've just deleted all relations in the dbc file. Then, when you want to add them back you use the ALTER TABLE blah blah blah WITH blah blah blah ADD FOREIGN KEY TAG blah etc.
>
>I don't know anything about that code to add back the relations because I always get it from the prg created with the GENDBC.prg.
>
>I've found it useful to delete all persistent relations and referential integrity also prior to performing some maintenance functions and then I add them back after the maintenance.
>
>Wally Noll
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform