t sur qu'il faut des ";" apres tes instructions ?
t sur qu'il faut des ";" apres tes instructions ?
non,c'est pas sur qu'il en faille mais il ne crie pas quand il y en a .
mais je viens de trouver ceci:
Use your connection object (dbObj in this example), and use the following commands:
dbObj.BeginTrans
dbobj.RollbackTrans
dbobj.CommitTrans
donc deux secondes,je me documente,et j'ecris un thread ensuite.
bon désolé,j'ai oublié mon thread,j'etais en plein code.
donc ça marche.il faut utiliser les 3 fonction suivantes:
BeginTrans
CommitTrans
RollbackTrans
These 3 methods is used with the Connection object to save or cancel changes made to the data source.
Note: Not all providers support transactions.
Note: These 3 methods are not available on a client-side Connection object.
BeginTrans
The BeginTrans method starts a new transaction.
This method can also be used to return a long value that is the level of nested transactions. A top level transaction has a return value of 1. Each additional level increments by one.
CommitTrans
The CommitTrans method saves all changes made since the last BeginTrans method call, and ends the current transaction.
Since transactions can be nested, all lower-level transactions must be resolved before you can resolve higher-level transactions.
RollbackTrans
The RollbackTrans method cancels all changes made since the last BeginTrans method call, and ends the transaction.
Since transactions can be nested, all lower-level transactions must be resolved before you can resolve higher-level transactions.
Syntax
level=BeginTrans()objconn.BeginTransobjconn.CommitTransobjconn.RollbackTrans
Vous avez un bloqueur de publicités installé.
Le Club Developpez.com n'affiche que des publicités IT, discrètes et non intrusives.
Afin que nous puissions continuer à vous fournir gratuitement du contenu de qualité, merci de nous soutenir en désactivant votre bloqueur de publicités sur Developpez.com.
Partager