Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Begin transaction & sqlsetprop(handle,transactions,2)
Message
De
24/02/2004 13:20:41
 
 
À
24/02/2004 12:32:48
Suhas Hegde
Dental Surgeon
Sirsi, Inde
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:
00880381
Vues:
34
>

>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)

You have NO call to SQLRollBack() here! If a table update fails you have to rollback. That's what "MANUAL" transactions means. I think the disconnect is doing a commit.

BOb
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform