23.10.2012 Views

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SET PRO_CONNECT QUERY_TIMEOUT<br />

58<br />

QUERY_PLAN<br />

Indicates that query plan information is written to the log file.<br />

Notes • When logging is set ON, the current <strong>SQL</strong> connection begins logging to a file named as<br />

<strong>SQL</strong>_server___.log.<br />

For example: <strong>SQL</strong>_server_1_05MAY2005_112609.log<br />

• The server-id corresponds to the server ID shown in database_name.lg.<br />

• Logging files are located in the server’s work directory. The work directory corresponds<br />

to the value of the WRKDIR environment variable on UNIX systems and the applicable<br />

registry settings in Windows systems.<br />

• The maximum size of each logging file is 500 MB. When<br />

<strong>SQL</strong>_server___.log reaches 500 MB, the server logs<br />

a message indicating the file was closed due to reaching the maximum size. After this<br />

message is written, all logging stops, logging is set to the OFF state, and<br />

<strong>SQL</strong>_server___.log automatically closes.<br />

• When logging commences to a new file, the file contents begin with information about the<br />

<strong>SQL</strong> Server environment, including:<br />

– Environment variable settings<br />

– Parameter values passed to the server at startup<br />

– Logging control values (such as size limits)<br />

– The <strong>SQL</strong> Server process ID<br />

• Each section of information written to the log file begins with the string<br />

DDMMMYYYY HH:MM:SS :<br />

For example, 19AUG2005 12:00:00 1:<br />

SET PRO_CONNECT QUERY_TIMEOUT<br />

Syntax<br />

Defines the maximum number of seconds during which a query should execute for the current<br />

<strong>SQL</strong> Server connection.<br />

n<br />

SET PRO_CONNECT QUERY_TIMEOUT n ;<br />

Indicates the maximum number of seconds during which a query should execute before it<br />

is automatically cancelled by the <strong>SQL</strong> server.<br />

Notes • The number of seconds specified is the maximum time allowed for the execution of the<br />

following protocol messages:<br />

• Query statement prepare

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!