skip to main content
Connection option descriptions : Query Timeout
  

Try DataDirect Drivers Now

Query Timeout

Attribute

QueryTimeout (qt)

Purpose

Sets the default query timeout (in seconds) for all statements created by a connection.

Valid Values

-1 | 0 | x
where:
x
is a number of seconds.

Behavior

If set to -1, the query does not time out. The driver silently ignores the SQL_ATTR_QUERY_TIMEOUT attribute.
If set to 0, the query does not time out, but the driver responds to the SQL_ATTR_QUERY_TIMEOUT attribute.
If set to x, all queries time out after the specified number of seconds unless the application overrides this value by setting the SQL_ATTR_QUERY_TIMEOUT attribute.

Default Value

0