You can use the State attribute to determine the state of the data connection.
Syntax | |
State | |
Return value | |
Type |
Description |
ConnectionStates |
State of the data connection |
Note | |
The attribut is read-only. |
ConnectionStates |
Description |
0 – CS_Closed |
Connection is closed |
1 – CS_Open |
There is a connection to the database |