SET PRO_SERVER QUERY_TIMEOUT
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
SET PRO_SERVER QUERY_TIMEOUT
Defines the maximum number of seconds during which a query should execute for the current SQL Server connection.
Syntax
|
Parameters
- n
-
Indicates the maximum number of seconds during which a query should execute before it is automatically cancelled by the SQL server. Setting an n value of
0disables a previously set query timeout.
Notes
- Execution of this command is restricted to DBAs. Any value set with this command is in effect for the duration that the database is up and running.
- Should a query timeout value be set for an individual connection via the command SET PRO_CONNECT QUERY_TIMEOUT the lower of the timeout values for the connection and the server takes precedence.
This
example sets the query timeout to 30 seconds:
|