Using the connection APIs

Set the CS_HAFAILOVER property using the ct_config and ct_con_props CTLIB API calls. You can set this property at either the context or the connection level, using this syntax:

ct_config(context, action, CS_HAFAILOVER, buf, buflen, outlen)

ct_con_props(connection, action, CS_HAFAILOVER, buf, buflen, outlen)

For more information on using the CTLIB API calls, see Using Sybase Failover in a High Availability System, which is available in the Sybase online book collection.