 |
JetEndSession ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Ends the session, and cleans up and deallocates any resources associated with the specified session. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
JET_ERR JET_API JetEndSession(
__in JET_SESID sesid,
__in JET_GRBIT grbit
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER JetEndSession IN esent;
INTEGER sesid,;
INTEGER grbit
|
 |
 |
 |
| Parameters: |
 |
sesid
The session to end. Associated resources are released when the session ends.
grbit
Reserved.
|
 |
 |
| Return value: |
 |
| This function returns the JET_ERR datatype with a predefined return code. |
 |
 |
| Usage: |
 |
LOCAL nInstance, cInstanceName, nSession
cInstanceName="JetBlue"
STORE 0 TO nInstance, nSession
= JetCreateInstance(@nInstance, m.cInstanceName)
= JetInit(@nInstance)
= JetBeginSession(nInstance, @nSession, 0, 0)
* ...after doing some useful stuff...
= JetEndSession(nSession, 0)
= JetTerm(nInstance)
|
 |
 |
| My comment: |
 |
This API will rollback any open transactions (not committed to level 0). Also all cursors associated with this session, and any sort tables that have been created or opened will be cleaned up.
See also: JetBeginSession |
 |
 |
| Word Index links for the JetEndSession : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2008-01-08 17:56:42 | | Modified: | 2008-01-08 18:01:21 | Visited in last 7 days: 13 |