 |
JetBeginTransaction ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Causes a session to enter a transaction and create a new save point. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
JET_ERR JET_API JetBeginTransaction(
__in JET_SESID sesid
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER JetBeginTransaction IN esent;
INTEGER sesid
|
 |
 |
 |
| Parameters: |
 |
sesid
The session to use for this call.
|
 |
 |
| Return value: |
 |
| Returns the JET_ERR datatype with a predefined return code. |
 |
 |
| Usage: |
 |
THIS.errorno = JetBeginTransaction(THIS.jetsessionid)
IF THIS.errorno <> 0
THIS.errormessage = "JetBeginTransaction call failed."
RETURN .F.
ENDIF
|
 |
 |
| My comment: |
 |
This function can be called more than once on a single session to cause the creation of additional save points. These save points can be used to selectively keep or discard changes to the state of the database.
See also: JetCommitTransaction, JetRollback |
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2008-01-13 14:07:52 | | Modified: | 2008-01-13 14:10:34 | Visited in last 7 days: 13 |