Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Begin transaction & sqlsetprop(handle,transactions,2)
Message
De
24/02/2004 12:32:48
Suhas Hegde
Dental Surgeon
Sirsi, Inde
 
 
À
24/02/2004 10:21:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00880173
Message ID:
00880358
Vues:
43
Sqlsetprop(han,"transactions",2)
if tableupdate(2,.t.,"abc") and tableupdate(2,.t.,"xzy") && first returned .t. and second .f.
** Now manually disconnect to test .
SQLdisconnect(han)
** tableupdate(2,.t.,"abc")  actually commited the changes but 

SqlEXEC(han,"Begin Transaction")
if tableupdate(2,.t.,"abc") and tableupdate(2,.t.,"xzy") && first returned .t. and second .f.
** Now manually disconnect to test .
SQLdisconnect(han)
** did not commit the changes. ?? 
I was surprised also to see that in the connection manual transaction the profiler showed something as @@trancount > 0 commit (Although i dont remember the exact but it rollforward the transactions where in it actually shouldnt.)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform