f2s_server_connect_state¶
Applies to: Oracle, MS SQL, MySql/MariaDB, PostgreSQL Drivers
Syntax¶
**There is no set_attribute. This attribute is read only.**
get_attribute f2s_server_connect_state of {DriverID} {Server} [{Database}] to {variable}
Parameter |
Description |
---|---|
DriverID |
The ID of the driver connected to the server. Typically this will be _f2s_ActiveDriverId |
Server |
String pointer to the name of the server. |
Database |
Optional string pointer to the name of the database |
variable |
Variable to hold the connect state. Returns 1 if connected. |
Description¶
This attribute is used to get the connect state of the server the driver is attached to.
Example¶
Get_Attribute f2s_server_connect_state of _f2s_ActiveDriverId (f2s_ConstPointer("MyServer")) to iValue
Get_Attribute f2s_server_connect_state of _f2s_ActiveDriverId (f2s_ConstPointer("MyServer")) (f2s_ConstPointer("MyDatabase")) to iValue
Replaces¶
GET_SERVER_CFG passing CONNECTION_ACTIVE