DB2 Version 10.1 for Linux, UNIX, and Windows

DB2ConnectionStringBuilder.QueryTimeout Property

Gets or sets the value of the QueryTimeout keyword.

Namespace:
IBM®.Data.DB2®
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax

[Visual Basic]
Public Property QueryTimeout As int
[C#]
public int QueryTimeout {get; set;}
[C++]
public: __property int* get_QueryTimeout();
public: __property void set_QueryTimeout(int*);
[JScript]
public function get QueryTimeout() : int;
public function set QueryTimeout(int);

Property value

The QueryTimeout indicates the default number of seconds to wait for an SQL statement or XQuery expression to complete executing before attempting to cancel the execution and returning to the application. This attribute overrides the default 30 second DB2Command.CommandTimeout value. There is no default value for QueryTimeout.

Version information

Last update
This topic was last updated for: IBM DB2 Version 9.7 Fix Pack 2
.NET Framework version
Supported in: 2.0, 3.0, 3.5, and 4.0
IBM Data Server Client
Supported in: IBM DB2 Database for Linux, UNIX, and Windows, Version 9.7 Fix Pack 2 and later