Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transactions
Message
De
10/06/2007 13:18:25
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
09/06/2007 18:20:52
Aman Bains
Jaguar Computers
Jalandhar, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
MS SQL Server
Divers
Thread ID:
01231804
Message ID:
01231847
Vues:
15
>I am using SPT in some places to insert/update. Some of these statements are being sent seperately & not as a batch. There are some VFP stmts inbetween. I have not changed the default SQL Server environment.
>
>Is it possible to make a transaction over multiple SqlExec() calls?
Hi Aman.

Try this.
?SQLSETPROP(lnHandel,"Transactions",2)
* sptexec() here 
if sqlcommit(lnHandel) < 0
  lnErro = aerror(laErrors)
  sqlrollback(lnHandel)
endif
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform