skip to main content
Connection option descriptions : Login Timeout
  

Try DataDirect Drivers Now

Login Timeout

Attribute

LoginTimeout (lt)

Purpose

The number of seconds the driver waits for a connection to be established before returning control to the application and generating a timeout error. To override the value that is set by this connection option for an individual connection, set a different value in the SQL_ATTR_LOGIN_TIMEOUT connection attribute using the SQLSetConnectAttr() function.

Valid Values

0 | x
where:
x
is a positive integer that specifies a number of seconds.

Behavior

If set to 0, inactive connections are kept open.
If set to x, inactive connections are closed after the specified number of seconds passes.

Default Value

0