Specifies the amount of time, in seconds, that a client waits for a query execution to be completed before the client attempts to cancel the execution and return control to the application.
If you set the QueryTimeout keyword to 0, the query timeout value that the application set is ignored, and the query runs until it is completed.
The query timeout value does not affect XA control operations, which include operations such as xa_open and xa_prepare.
In IBM Data Server Provider for .NET, the CommandTimeout property takes precedence over the QueryTimeout keyword that is set in the connection string. The QueryTimeout keyword that is set in the connection string takes precedence over the QueryTimeout keyword that is set in the db2dsdriver.cfg file.