大网数据广告活动
磁盘与文件系统

JET_SESID

· 52CE 我爱测

The JET_SESID data type contains a handle to the session to use for a call to the JET API.

Applies to: Windows | Windows Server

JET_SESID

The JET_SESID data type contains a handle to the session to use for a call to the JET API.

    typedef JET_API_PTR JET_SESID;

Data Types

JET_SESID

Either NULL or JET_sesidNil can be used to indicate an invalid session handle.

Remarks

A session is the transaction context of the database engine. It can be used to begin, commit, or abort transactions that affect the visibility and durability of changes that are made by this or other sessions.

A transaction can be started using JetBeginTransaction. A session may be created using JetBeginSession. The maximum number of sessions that can be created at any one time is controlled by JET_paramMaxSessions, which can be configured by means of JetSetSystemParameter.

A session is explicitly ended by a call to JetEndSession or implicitly ended by a call to JetTerm.

Each session can only be used by one thread at a time. In addition, the default behavior of the engine is to restrict the use of a session to the same thread from the time the first call to JetBeginTransaction is made until the time when the matching call to JetCommitTransaction or JetRollback is made. This behavior can be changed to remove this second restriction by setting a custom session context using JetSetSessionContext and JetResetSessionContext.

Requirements

Requirement Value
Client Requires Windows Vista, Windows XP, or Windows 2000 Professional.
Server Requires Windows Server 2008, Windows Server 2003, or Windows 2000 Server.
Header Declared in Esent.h.

See Also

JET_paramMaxSessions
JetBeginSession
JetBeginTransaction
JetCommitTransaction
JetEndSession
JetResetSessionContext
JetRollback
JetSetSessionContext
JetSetSystemParameter
JetTerm

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 04/11/2016
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。