Stupid Question - What is Session? |
尚未結案
|
BorlandUser
中階會員 發表:148 回覆:217 積分:73 註冊:2004-02-19 發送簡訊給我 |
|
geniustom
版主 發表:100 回覆:303 積分:260 註冊:2003-01-03 發送簡訊給我 |
|
Chance36
版主 發表:31 回覆:1033 積分:792 註冊:2002-12-31 發送簡訊給我 |
BorlandUser 你好
Delphi HELP中已說明的相當清楚?
TSession provides global management of a group of database connections in an application. Unit DBTables Description Use TSession to manage a group of database connections within an application. There are three uses for TSession: standard, multiple net files for Paradox, and multi-threaded database applications. The library automatically creates a globally accessible default TSession component named Session for all database applications. The default session component handles standard database connections. An application can control the default session by accessing its properties, events, and methods at runtime. Database applications that must simultaneously access Paradox tables located in different network locations can establish multiple sessions, one for each network location. Finally, database applications that must establish multiple, concurrent connections to the same database, such as performing two queries against the same data at once, are multi-threaded applications. Multi-threaded applications must create and maintain one additional session component for each simultaneous connection to a single database server. Note: Applications that maintain multiple sessions can manage them through the TSessionList component. A default session list component, called Sessions?ote the plural which distinguishes it from the default session component, Session?s automatically created for all database applications.
Note: TSession implements the IDBSession interface, which allows the global PasswordDialog function to supply passwords to the component.
|
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |