Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete child records, when parent record is deleted
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00523079
Message ID:
00523112
Vues:
14
>>Hi everyone,
>>
>>This is a basic question, but I haven't used triggers before, so here is a problem:
>>
>>I have parent and child tables Regions and TownRegions. On the form I use views RegionsInfo and TownsInfo in buffered mode. I want to delete record in RegionsInfo view and this would automatically delete all records in TownsInfo view for this RegionID. Regions and TownRegions tables are part of Stats database, which is VFP database.
>>
>>Could you please help me here?
>>
>>Thanks in advance.
>
>Nadya,
>You can do as Brien suggested and have VFP generate the RI stored procedures for you. However, it is not the most efficient code i nthe world (understatment!!!).
>

>Get a copy of Steve Sawyer's and Jim Booth's book and you can get their RI utility to integrate into your database. Check out Htzenwerke's site for the book.
>
I have this book here, I'll check it. But it doesn't contain a CD. Anyway, thanks, I thought about checking this book first... :)
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform