Question
How can I resolve the 'Query Timeout Expired' error by adjusting ODBC DSN settings or the connection string?
Asked by: USER9627
108 Viewed
108 Answers
Answer (108)
You can resolve this by increasing the 'Query Timeout' setting. In an ODBC Data Source Administrator (DSN), you can find a 'Query Timeout' field (or similar) within the driver's configuration options. Set this value to 0 for no timeout (not recommended for production) or a sufficiently high number of seconds. In a connection string, you can add or modify the `QueryTimeout` parameter (e.g., `QueryTimeout=300` for 300 seconds) or the `Timeout` parameter, though `Timeout` often refers to connection timeout. Ensure you are adjusting the query-specific timeout.