Data.SqlExpr.TConnectionState
| [–] Properties | |
|---|---|
| Type: enum | |
| Visibility: public | |
| Source: Data.SqlExpr.pas Data.SqlExpr.hpp
| |
| Unit: Data.SqlExpr | |
| Parent: Data.SqlExpr | |
Delphi
TConnectionState = (csStateClosed, csStateOpen, csStateConnecting,
csStateExecuting, csStateFetching, csStateDisconnecting);
C++
enum DECLSPEC_DENUM TConnectionState : unsigned char { csStateClosed, csStateOpen, csStateConnecting, csStateExecuting, csStateFetching, csStateDisconnecting };
Description
TConnectionState describes the state of a TSQLConnection component.
TConnectionState can have any of the following values:
| Value | Meaning |
|---|---|
|
csStateClosed |
The connection is closed. (The Connected property is false) |
|
csStateOpen |
The connection is open. (The Connected property is true) |
|
csStateConnecting |
The component is establishing a connection but has not completed the process. |
|
csStateExecuting |
The component has passed an SQL command to the server and it is currently executing. |
|
csStateFetching |
The component is fetching database information from the server. |
|
csStateDisconnecting |
The component is terminating a connection but has not completed the process. |