|
<< Click to Display Table of Contents >>
ConnectionActive |
Indicates whether Elipse E3 has an active connection with a database. Elipse E3 normally uses 2 (two) connections with this database, one for writing and another one for reading. This property is in True if at least one of those 2 (two) connections is connected and working. This property should not be used to detect connection failures, as it may be in False in several situations, such as:
•When a database is not in use, that is, no writing or reading operation was executed
•When a database was just configured, that is, when a connection property of the database changes at run time all connections are closed, and they are reconnected only at the next reading or writing operation
•When a database connection drops, such as when the network is not available or the database was closed
•When a Database object is disabled, although with a Database object deactivated, a connection can be reestablished if an application requests an immediate reading or writing to a database
This is a read-only property.
NOTE |
If an application generates database operations consistently, that is, if it is always generating new writing or reading operations, this property correctly reports the connection status with a database, as this eliminates other situations when this property could be in False. |