Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transactions on SQL Server
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Transactions on SQL Server
Divers
Thread ID:
00597109
Message ID:
00597109
Vues:
43
Hi.

Which is the best way to use Transactions in MS-SqlServer?

OPTION A)
ConectionId = SqlStringConnect("blá blá blá")
SqlSetProp(blá blá blá)
SqlExec(blá blá blá)
SqlExec(blá blá blá)
SqlExec(blá blá blá)
SqlCommit(blá blá blá) [or] SqlRollback(blá blá blá)
OR...

OPTION B)
ConectionId = SqlStringConnect("blá blá blá")
SqlExec("BEGIN TRANSACTION")
SqlExec(blá blá blá)
SqlExec(blá blá blá)
SqlExec(blá blá blá)
SqlExec("COMMIT") [or] SqlExec("ROOLBACK")
?

Thanks!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Rodolfo Duarte
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform