Chat now with support
Chat with Support

SQL Optimizer for SAP ASE 3.8 - Release Notes

Add SQL to SQL Repository

SQL statements are stored in the SQL Repository for use in an Index Impact Analysis, an Index Usage Analysis, a Migration Analysis, or a Configuration Analysis. From within the SQL Repository window, you can add a single SQL statement, some or all SQL statements found by the SQL Scanner, and SQL statements that reference specific tables or views. SQL statements can also be added to the SQL Repository from other modules.

To add a single SQL statement

  1. Click image\B_SQLRepository.gif.

  2. If no SQL exists in the SQL Repository, then the Add SQL wizard displays automatically. Otherwise, click Add SQL image\B_AddSQL.gif.

  3. The Add SQL wizard has three pages to selects the options for saving the SQL statement to the SQL Repository.

  1. After making the selections from the three tabs, click OK to save the SQL to the SQL Repository.

The SQL syntax is checked and the query plan retrieved before adding a new node to the SQL tree view with the SQL name. Each SQL statement added to the SQL Repository contains a query plan, SQL classification type (Simple, Complex or Problematic) and the current connection information (login name, server name, database and user). The query plan stored with the SQL statement is important as it indicates the current performance of the SQL.

To add SQL from the SQL Scanner

  1. From the SQL Repository window, select SQL | Add SQL from SQL Scanner.

  2. On the General page of the wizard, select the location to save the SQL statements.

  3. On the SQL Scanner page, select the Groups or Jobs that contain the SQL you want to add.

  4. Click Finish.

To add all SQL statements that references a specific table or view

  1. From the SQL Repository window, select SQL | Add SQL by Database Object.

  2. In the Database object pane, select the tables or views that you want the SQL to reference.

  3. Click Extract. The Save SQL to SQL Repository wizard displays.

  4. On the General page, select the location to save the SQL statements.

  5. Click Finish.


Related Topics

Related Documents

The document was helpful.

Select Rating

I easily found the information I needed.

Select Rating