Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple deletion
Message
De
10/02/2005 15:31:07
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
10/02/2005 15:25:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00985713
Message ID:
00985754
Vues:
18
>Hilmar,
>
>How do you apply VFP RI-builder to SQL server ? because it is not table.dbc
>
>and I have to use SQLEXEC() , SQLCONNECT() command etc... to get infos from
>those tables into temporarily tables in order to delete.
>
>Tia

OK, I thought you wanted to do this in VFP. If you say "SQL", this might mean "the SQL language", which is also available (in part) in VFP.

In SQL Server, you should search for the referential integrity options provided by SQL Server. I don't know how to do it, but I think the same basic principle applies: if you specify a cascading delete (I think they would use the same name), then a deletion in one table would automatically trigger the deletion of related records in other tables.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform