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_SERVER LOG<br />

SET PRO_SERVER LOG<br />

Syntax<br />

60<br />

Controls logging for all connections to all OpenEdge <strong>SQL</strong> Servers.<br />

ON<br />

Statement stmt = connection.createStatement();<br />

String MySetQueryTimeout;<br />

String MyClearQueryTimeout;<br />

MySetTimeout = “SET PRO_SERVER QUERY_TIMEOUT 30”;<br />

MyClearTimeout = “SET PRO_SERVER QUERY_TIMEOUT 0”;<br />

// Set <strong>SQL</strong> Server timeout for query execute and fetch<br />

stmt.executeUpdate( MySetQueryTimeout );<br />

// Add code here to perform queries<br />

// Clear <strong>SQL</strong> Server timeout for query execute and fetch<br />

stmt.executeUpdate( MyClearQueryTimeout );<br />

SET PRO_SERVER LOG [ ON | OFF ] [ WITH ( { STATEMENT, QUERY_PLAN } ) ];<br />

OFF<br />

Indicates that logging is turned on.<br />

Indicates that logging is turned off.<br />

STATEMENT<br />

Indicates that statement tracing information is written to each log file.<br />

QUERY_PLAN<br />

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

Notes • When logging is set ON, each <strong>SQL</strong> Server 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.

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

Saved successfully!

Ooh no, something went wrong!