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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SET PRO_CONNECT LOG<br />

Notes • The SET CATALOG statement is used to specify the default database catalog name to be used<br />

for schema, table, and column references.<br />

• The primary database connection is automatically given a catalog name which is the name<br />

of the primary database. For example, if the primary database is at<br />

/usr/progress/sports2000, then the catalog name for the primary database is<br />

sports2000.<br />

• The SET CATALOG statement may be used to set the default catalog to an auxiliary database<br />

catalog or to the primary database catalog.<br />

• The specified catalog must identify a current catalog name.<br />

• If an auxiliary database catalog is set as the default catalog, disconnecting from the<br />

auxiliary catalog will not change the name of the default catalog. Thus setting the default<br />

catalog to an auxiliary database may cause failures of statements when the default catalog<br />

is not set to an active catalog. In other words, shutting down an auxiliary database<br />

identified as the default catalog will cause any query using a three-part specification to fail.<br />

The failure produces an error indicating that the catalog is not connected.<br />

Authorization<br />

Any user is allowed to execute this statement.<br />

<strong>SQL</strong> Compliance<br />

Progress Software Corporation specific extension.<br />

Related statements<br />

SET PRO_CONNECT LOG<br />

Syntax<br />

CONNECT AS CATALOG, DISCONNECT CATALOG<br />

Controls logging for the current <strong>SQL</strong> Server connection.<br />

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

ON<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 the log file.<br />

57

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

Saved successfully!

Ooh no, something went wrong!