|
<< Click to Display Table of Contents >> DbiSetCurrSession |
![]() ![]()
|
C syntax
DBIResult DBIFN DbiSetCurrSession (hSes);
Delphi syntax
function DbiSetCurrSession (hSes: hDBISes): DbiResult stdcall;
Description
DbiSetCurrSession sets the current session of the client application to the session associated with hSes.
Parameters
hSes Type: hDBISes (Input)
Specifies the session handle. If hSes is NULL, DbiSetCurrSession sets the current session to the default session.
Completion state
All subsequent operations that do not require an object handle (such as cursor, database, or statement) are associated with this session. Any functions that take an explicit database, query, or cursor handle as an argument are not affected by DbiSetCurrSession. Any resources required by these functions are allocated in the context of the session set by DbiSetCurrSession.
DbiResult |
Meaning |
DBIERR_NONE |
The session has been successfully set to the session associated with hSes. |
DBIERR_INVALIDSESHANDLE |
The specified session handle is invalid. |
See also
DbiGetCurrSession, DbiStartSession, DbiCloseSession, DbiGetSysInfo, DbiGetSesInfo