Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ORACLE, Commit and Rollback
Message
De
12/06/2002 05:02:23
Wilfred Chan
Bnp Paribas Hong Kong Branch
Hong Kong, Hong Kong
 
 
À
12/06/2002 03:17:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00667236
Message ID:
00667248
Vues:
34
This message has been marked as the solution to the initial question of the thread.
Hi,

Have you set the "transaction" to manual ?
sqlsetprop(nHandle,'Transaction',2)   && 1-Auto, 2-manual, see help
sqlexec(nHandle,"INSERT INTO COUNTRY_ZONE VALUES ('12345','ABC')")
sqlexec(nHandle,"commit/rollback")
:) Wilfred

>Hi
>
>I have succesfullily added a new record to a ORACLE database using the following function:
>
>?SQLEXEC(nHandle,'[INDERT INTO COUNTRY_ZONE VALUES '12345','ABC'])
>
>If I want to perform a ROLLBACK I do as follows:
>
>?SQLEXEC(nHandle,'ROLLBACK')
>
>The returncode is 1, but nothing is rolled back. How do I specify that it is in COUNTRY_ZONE I want to pedform a ROLLBACK ????
>
>The same goes for COMMIT
>
>Regards
>Benn
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform