Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transactions
Message
De
30/03/2001 10:16:23
 
 
À
30/03/2001 09:07:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00490206
Message ID:
00490323
Vues:
10
It is my understanding and correct me if I'm not correct that rollback only rollback any updating you have done within the begin transaction end transaction. Say for instance you have two table called subscriber and money. Before you begin the transaction you append a record to the subscriber and money table. The subscriber table has a stored procedure that requires that you enter a last name. User hasn't done that so when begin the begin end transaction with a tableupdate to subscriber table it fails. You call rollback but it doesn't rollback since you haven't included the append in the begin end transaction sequence. So what I do is call rollback and then call tablerevert for each of the tables. From my limited knowledge I tried to keep the updating outside of the begin end transaction since I knew it lock the entire table and want to keep the processing short within the begin end transaction. Perhaps I was wrong and should have included my appends within the transaction.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform