skip to main content
OpenAccess SDK Service Attributes : Defining Service Attributes : DataSourceQueryTimeOut
 

DataSourceQueryTimeOut

Enables query timeouts in the OpenAccess SDK Server.

Valid values

*When set to a value greater than 0, the query timeout is enabled. The specified value is the default timeout value for every query, unless it is overridden by the client application.
*When set to a value less than 0, the query timeout is disabled. Client applications cannot set or override the query timeout.
*When set to 0, query timeout is enabled and will never timeout, unless the client application overrides this setting. This is the default behavior if the attribute is not set.

Type

Static
Note: The ODBC Client supports SQLSetStmtAttr/ SQLGetStmtAttr(SQL_ATTR_QUERY_TIMEOUT). However, some IPs do not support this feature. The query timeout value set by the SQLSetStmtAttr will override the value set in DataSourceQueryTimeOut when this feature is enabled.