 |
JetCommitTransaction ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Commits the changes made to the state of the database during the current save point and migrates them to the previous save point. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
JET_ERR JET_API JetCommitTransaction(
__in JET_SESID sesid,
__in JET_GRBIT grbit
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER JetCommitTransaction IN esent;
INTEGER sesid,;
INTEGER grbit
|
 |
 |
 |
| Parameters: |
 |
sesid
The session to use for this call.
grbit
A group of bits specifying zero or more of predefined options.
|
 |
 |
| Return value: |
 |
| Returns the JET_ERR datatype with a predefined return code. |
 |
 |
| Usage: |
 |
LOCAL nBookmark, nBookmarkSize
nBookmarkSize=4
THIS.errorno = JetUpdate(THIS.jetsessionid, THIS.jettableid,;
@nBookmark, m.nBookmarkSize, @nBookmarkSize)
IF THIS.errorno <> 0
= JetRollback(THIS.jetsessionid, 0)
THIS.errormessage = "JetUpdate call failed."
RETURN .F.
ENDIF
= JetCommitTransaction(THIS.jetsessionid, 0)
|
 |
 |
| My comment: |
 |
On success, any changes made to the database during the current save point for the given session will be committed and that save point will be ended. If the last save point for the session was ended then the transaction will optionally be flushed to the transaction log file and the session will exit the transaction.
On failure, the transactional state of the session will remain unchanged. No change to the database state will occur. The application should call JetRollback to abort the transaction.
See also: JetBeginTransaction, JetRollback |
 |
 |
| Word Index links for the JetCommitTransaction : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2008-01-13 14:13:49 | | Modified: | 2008-01-13 14:17:25 | Visited in last 7 days: 14 |