Feedback
Did this article resolve your question/issue?

   

Article

Timeout expired error when executing a query that has QueryTimeout set

Information

 
TitleTimeout expired error when executing a query that has QueryTimeout set
URL Name000028010
Article Number000146830
EnvironmentProduct: Connect/Connect64 for ODBC, Progress DataDirect for ODBC
Version: 6.0, 6.1, 7.0, 7.1, 8.0
OS: All supported platforms
Database: All supported databases
Application : All supported applications
Question/Problem Description
When running a query where connection attribute QueryTimeout is set or SQL_ATTR_QUERY_TIMEOUT is called with a set value of seconds, an error is returned.
Steps to Reproduce
Clarifying Information
Error Message[DataDirect][ODBC Oracle Wire Protocol driver]Timeout expired.
[DataDirect][ODBC SQL Server Driver][libssclient21]Timeout Expired.
Defect Number
Enhancement Number
Cause
This is expected behavior. 
The QueryTimeout setting or ODBC call SQLSetStmtAttr(SQL_ATTR_QUERY_TIMEOUT) is used to time out a query that is taking too long.
Resolution
If a longer timeout period is needed, increase the value of the QueryTimeout connection attribute or SQLSetStmtAttr(SQL_ATTR_QUERY_TIMEOUT)setting.
 
Valid values are -1 | 0 | x where x is a positive integer that specifies a number of seconds.
 
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 is 0

Refer to the User's Guide to see which data sources support Query Timeout.
Workaround
Notes
References to other documentation:
DataDirect Documentation
Last Modified Date2/10/2020 2:19 PM
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.