Admin Alert: Turning Off ODBC Query Timeout Limits
July 13, 2005 Joe Hertvik
OS/400 ODBC processing is notorious for obscure error messages that offer little information about their causes or their solutions. One of the strangest is the SQL0666 error, which stops SQL query processing when the estimated query run time exceeds the system’s query processing limit. While others have documented how to avoid this error by changing an ADO property, newer iSeries Access ODBC drivers allow you to disable query timeouts directly within your Data Sources (DSN).
For those who have not run into it, the SQL0666 error usually happens when you are using ODBC to process a large query from your