Chat now with support
Chat with Support

SQL Optimizer for SQL Server 10.0.3 - User Guide

Scan SQL

SQL Scanner extracts SQL statements embedded in database objects, captured from SQL Profiler, stored in application source code and binary files, or saved in a Foglight Performance Analysis SQL Repository. Use the Add Scanner Jobs wizard to create scan jobs using statements from any of these sources.

Note: This topic focuses on information that may be unfamiliar to you. It does not include all step and field descriptions.

To create a scan job

  1. Select the Scan SQL tab in the main window.
  2. Click Add Scanner Job from the Welcome pane.

    Tip: You can navigate directly to the embedded SQL statement for a particular format by clicking one of the links from the Welcome pane.

  3. Select a connection to use for the scan job. Review the following for additional information:

    Select Connection Description

    Connection

    Click to select a previously created connection.

    Tip: Click to open the Connection Manager to create a new connection.

    Select Database and User Description

    Database

    Click to select the database to match your SQL statement.

    Set User

    Click to select your user name.
  4. Select the page for the type of statement you want to add to the scan job. Review the following for additional information:

    Database Objects Page Description

    Database Objects

    Select a database object and click to add the object to scan.

    Tip: Click to browse for database objects to add.

    SQL Profiler Page Description

    Available trace files/table

    Click to add SQL Server Profiler trace files or trace tables to scan.

    Database

    Click to select the database of the SQL to scan.

    Set User

    Click to select your user name.
    Source Code Page Description

    Source code type

    Select Text/Binary files or COBOL programming source code to indicate the source code type.

    Add by file

    Click and browse to the files you want to scan.

    Add by directory

    Click and browse to the directories you want to scan.

    Note: Select the Include Sub-directory checkbox to scan sub-directories.

    Connection for scanning

    Select the database and user name settings.
    Foglight Performance Analysis Page Description

    Connection

    Click to select a previously created connection for the SQL statements you want to scan.

    Tip: Click to open the Connection Manager to create a new connection.

    Database

    Click to select a database and search for the Foglight Performance Analysis repository used to store captured SQL.

    Connection for scanning

    Select the database and user name settings.

    Note: Use this connection when the SQL statements you want to scan and the Foglight Performance Analysis repository are not located in the same database.

    Note: SQL Scanner helps you manage scan jobs by organizing them into groups. Use the Group Information page to create a new group or to add the current scan job to an existing group.

  5. Select the Group for the scan job you created in the Scanner node of the Task pane once SQL Scanner finishes scanning.

  6. Select the scan job in the Group node.

  7. Identify problematic SQL statements in the SQL List pane. See View SQL Classification for more information.

  8. Select SQL statements to send to SQL Optimizer for optimization. See Send to Optimize SQL for more information.

  

Related Topics 

Manage Groups

Manage Scan Jobs

 

Related Documents

The document was helpful.

Select Rating

I easily found the information I needed.

Select Rating