Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transactions and GetAutoincValue()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Transactions and GetAutoincValue()
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01373138
Message ID:
01373138
Vues:
63
Does GetAutoincValue() work ok with Transactions? My program does the following:
BEGIN TRANSACTION
Create an invoice header record
InvoiceKey = GetAutoincValue()
Create a set of invoice line records that include the Invoice Key from above.
If all ok
  END TRANSACTION
else
  ROLLBACK
endif
Is there any problem here if a rollback is done? How does this affect any other users in the system running the same code at the same time?
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform