KeepAlive

Description

Determines whether packets are sent to the database to ensure that the connection is still active.

NoteWhen to specify KeepAlive You must specify the KeepAlive parameter before connecting to the database.

Applies to

Syntax

KeepAlive=value

Parameter

Description

value

Specifies whether the Open Client/Server CS_CON_KEEPALIVE property is set for your connection. Values are:

Default

KeepAlive=1

Usage

KeepAlive sets the value of the Sybase CT-Lib connection property CS_CON_KEEPALIVE to true or false. The default setting ensures that your connection is alive by sending packets to the database when the connection is idle. Set the value of this property to false for mobile clients that do not maintain constant connections.

Examples

Example 1

To set the KeepAlive value to 0 when you do not want to maintain a connection: