Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Begin..End Transaction in RVs
Message
De
11/03/2002 04:28:18
Czarina Joyce Villanueva
Innovision Systems International
Manila, Philippines
 
 
À
11/03/2002 04:26:01
Czarina Joyce Villanueva
Innovision Systems International
Manila, Philippines
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00630837
Message ID:
00630842
Vues:
17
Sorry it must be:
Begin Transaction
lUpdate = TableUpdate(1,.T.,"MyRvAlias1")
If lUpdate
   lUpdate = TableUpdate(1,.T.,"MyRvAlias2")
Endif
If lUpdate
   lUpdate = TableUpdate(1,.T.,"MyRvAlias3")
Endif
If lUpdate
   End Transaction
Else
   Rollback
   =TableRevert(.T.,"MyRvAlias1")
   =TableRevert(.T.,"MyRvAlias2")
   =TableRevert(.T.,"MyRvAlias3")
Endif
Problem is if MyRvAlias1 commits successfully but MyRvAlias2 does not, the Rollback does not restore the original values of both tables. Am I missing something?

BTW, my database is still pure VFP, but sooner we will upgrade it to SQLServer 2000 that's why we are using RVs and SPTs.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform