DB2®ConnectionStringBuilder.QueryTimeout property
Gets or sets the value of the QueryTimeout keyword.
- Namespace:
IBM.Data.DB2- Assembly:
IBM.Data.(inDB2IBM.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 property specifies the number of seconds to wait for the execution of an SQL statement or XQuery expression to be completed. If the specified time is reached, the client attempts to cancel the execution and return control to the application. The value of the QueryTimeout property overrides the default value of the DB2Command.CommandTimeout property. There is no default value for the QueryTimeout property.
The QueryTimeout property does not apply to XA control operations, which include xa_open and xa_prepare.