Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL0666 - SQL query exceeds specified time limit or storage limit

Periodically, I get this error message while making a call to a DB2 database using the Odbc connection string. I have tried setting the CommandTimeout of the DbCommand object to multiple values, but I still get the following error.

SQL0666 - SQL query exceeds specified time limit or storage limit.

Is there a trick to getting this to stop erroring out. It is very odd because the same query sometimes will work and sometimes will timeout. Any help would be appreciated. Thanks!

like image 390
Isaac Levin Avatar asked Feb 24 '11 22:02

Isaac Levin


1 Answers

I have tried setting the CommandTimeout of the DbCommand object to multiple values

I set the DbCommand.CommandTimeout= 0 and this fixed the timeout error

like image 119
kite Avatar answered Sep 18 '22 18:09

kite