SET PRO_CONNECT QUERY_TIMEOUT
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
SET PRO_CONNECT QUERY_TIMEOUT
Defines the maximum number of seconds during which a query should execute for the current SQL Server connection.
Syntax
|
Parameter
- n
-
Indicates the maximum number of seconds during which a query should execute before it is automatically cancelled by the SQL server.
Notes
- The number of seconds specified is the maximum time allowed for the execution of the
following protocol messages:
- Query statement prepare
- Query statement execution
- Query fetch
- The value specified by n applies to all subsequent protocol messages
of these types until the timeout value is cleared. This may be accomplished simply by
specifying a value of
0on subsequent execution of the statement.
Example
This
example sets the query timeout to 30 seconds:
|