Using Win32 functions in Visual FoxPro Image Gallery
Extensible Storage Engine (ESE, Jet Blue)
JetAddColumn
JetBeginSession
JetBeginTransaction
JetCloseDatabase
JetCloseTable
JetCommitTransaction
JetCreateDatabase
JetCreateInstance
JetCreateTable
JetDeleteTable
JetDetachDatabase
JetEndSession
JetGetColumnInfo
JetGotoBookmark
JetInit
JetMove
JetOpenTable
JetPrepareUpdate
JetRetrieveColumn
JetRollback
JetSetColumn
JetTerm
JetUpdate
Code examples:
Extensible Storage Engine class library
JetBeginSession
..msdn    Add comment     W32 Constants      Translate this page
Starts new ESE session and initializes and returns an ESE session handle
Code examples:
Extensible Storage Engine class library
Declaration:
JET_ERR JET_API JetBeginSession(
  __in          JET_INSTANCE instance,
  __out         JET_SESID* psesid,
  __in_opt      JET_PCSTR szUserName,
  __in_opt      JET_PCSTR szPassword
);
FoxPro declaration:
DECLARE INTEGER JetBeginSession IN esent;
    INTEGER instance,;
    INTEGER @psesid,;
    INTEGER szUserName,;
    INTEGER szPassword
Parameters:
instance
The database instance to use for this call.

psesid
Pointer to the variable that the session handle initializes on successful return.

szUserName
This parameter is reserved.

szPassword
This parameter is reserved.

Return value:
This function allows for the return of any JET_ERRs that are defined in this API.
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:
Sessions control all access to the database and are used to control the scope of transactions. The session can be used to begin, commit, or abort transactions.

The session is also used to attach, create, or open a database. To increase concurrency and parallel access to the database, multiple sessions can be begun.

See also: JetEndSession
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2008-01-08 17:51:31
Modified: 2008-01-08 17:56:09
Visited in last 7 days: 19
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Google
Advertise here!