Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How would you solve this one
Message
De
17/05/1999 10:35:31
 
 
À
17/05/1999 10:18:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00217516
Message ID:
00219596
Vues:
33
>>My turn to say "WHOA", Rich. < g > I thought that the way Pascal was doing it
>>is the correct way to do transactions. How can you roll-back changes if you
>>begin the transaction in the Save routine??
>
>Bonnie,
>
>Maybe I'm not the right person to tell you because I found it out myself only a couple of days ago but the right way is :
>- do all updating using buffered tables and views
>- When the user decides to save :
>- BEGIN TRANSACTION
>- tableupdate for each table to update
>- if everthing is OK : END TRANSACTION
>- if not : ROLLBACK, and try to (let the user) resolve the problem(s)
>- if you can't resolve the problem(s), then tabelrevert
>
>Someone in this thread proposed me to look at "Programming for multiuser access" in MSDN ; you should read it, you will, like i did, see the light !

Yep, check out my other post (I wrote this one before I continued reading the thread ... should read 'em all first and then keep my big mouth shut until I finish < g >)

Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform