SQL Scanner extracts SQL statements embedded in database objects, captured from SQL Profiler, or stored in application source code and binary files. Use the Add Scanner Jobs wizard to create scan jobs using statements from any of these sources.
To create a scan job
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.
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. |
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. |
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. |
Select the Group for the scan job you created in the Scanner node of the Task pane once SQL Scanner finishes scanning.
Select the scan job in the Group node.
Identify problematic SQL statements in the SQL List pane. See View SQL Classification for more information.
Select SQL statements to send to SQL Optimizer for optimization. See Send to Optimize SQL for more information.
© ALL RIGHTS RESERVED. 利用規約 プライバシー Cookie Preference Center