RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SqlExpr.TConnectionState Enumeration

TConnectionState describes the state of a TSQLConnection component.

Pascal
TConnectionState = (
  csStateClosed,
  csStateOpen,
  csStateConnecting,
  csStateExecuting,
  csStateFetching,
  csStateDisconnecting
);
C++
enum TConnectionState {
  csStateClosed,
  csStateOpen,
  csStateConnecting,
  csStateExecuting,
  csStateFetching,
  csStateDisconnecting
};

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.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!