Chat now with support
Chat with Support

SQL Optimizer for SAP ASE 3.8 - User Guide

Introduction Tutorials Preferences Editor Functions SQL Information and Functions Performance Monitor SQL Inspector SQL Collector for Monitor Server SQL Scanner Index Advisor SQL Optimizer
SQL Optimizer Overview Optimization Engine Common Coding Errors in SQL Statements What Function Should l Use to Retrieve the Run Time? Unsatisfactory Performance Results SQL Optimizer Functions SQL Editor Optimized SQL Activity Log
SQL Worksheet SQL Formatter Database Explorer Code Finder Object Extractor SQL Repository Index Impact Analyzer Index Usage Analyzer Configuration Analyzer Migration Analyzer Abstract Plan Manager User-Defined Temp Tables SQL History Legal Information

View Activity Log Report

SQL Optimizer > Activity Log > View Activity Log Report

You can save or print the information in the report.

To print or view information stored in the activity log

  1. Select Report | Activity Log to open the Activity Log Report Criteria window.

  2. Select the information to view.

  3. Click OK to generate the report.

The following information may be displayed depending on the criteria you select.

User Information

Item Description

PC User

Windows user name used to logon to the PC.

Logon Name

Database logon name.

Server Name

Adaptive Server name.


Database user.


Database name.

Activity Information

Item Description


Date of when the activity was executed.


Activity type

SQL optimization (OP)   

Query plan generation (EP)   

Original SQL Type

The SQL Classification of SQL the original SQL (Simple, Complex or Problematic).

The information below is repeated for ALL RECORDS and FIRST RECORD.


The current status of the activity.


Plan generation completed


Optimization aborted


Optimization without any test run


Improvement found (after test running all SQL alternatives)


No improvement (after test running all SQL alternatives)


Improvement found (without testing running all SQL alternatives)


No improvement (without testing running all SQL alternatives)


Original SQL Time

The run time of the original SQL statement.

Best Alternative Time

Best run time from the alternative SQL statements.

Times of Improvement

Calculates how much faster the alternative is in comparison to the original SQL statement.

Note: The activity log information is retrieved from the Activity Log directory; therefore if any changes are made to this directory the information may not be retrieved.


Related Topics

Purge Activity Log Data

SQL Optimizer > Activity Log > Purge Activity Log Data

To purge the activity log data

  1. Click the image\B_Preferences.gif.

  2. Select the Activity Log tab.

  3. Under the Housekeeping section, select either Whole Log to remove all information or specify a date range to remove logs between these dates.

  4. Click Purge Now.


Related Topics

Stop Recording Activities

SQL Optimizer > Activity Log > Stop Recording Activities

To stop recording activities to the activity log:

  1. Click image\B_Preferences.gif.

  2. Select the Activity Log tab.

  3. Under the Activity to be logged, de-select the SQL optimization and Query plan generation checkboxes to disable the activity log.


Related Topics

SQL Worksheet

Related Documents

The document was helpful.

Select Rating

I easily found the information I needed.

Select Rating