To define a new Plan Cache workload
Specify SQL filter criteria.
Notes:
- Use the cursor to hover over an option (bar) in the graph to display option details.
- Click List statistics data to display the options for the currently selected filter criterion in a grid format
- You can display additional data in the graph (or in the grid). To do this, select/deselect data options from the group of options at the top of the page.
To begin collecting SQL, click .
Optimize Indexes immediately asks you to choose a second database connection. Select a database connection to use to retrieve execution plans and evaluate index alternatives.
Note: This step allows you to select an alternate database (other than the one used to collect SQL) to run the index optimization process. In other words, you can collect your SQL from one database, but run the optimize indexes process on a second database. The second database must have the same application environment and data volume statistics as the first.
The Search Process page opens. Before specifying search process criteria, you can review and modify your SQL workload.
Note: To restart the SQL collection process, click Collected from <source> to return to the SQL Criteria page. Then click restarted.
Review collected SQL. To review and modify your SQL workload, click Review/adjust workload SQL. Review the following for additional information:
SQL Tuning Set |
This pane displays the list of SQL in the workload. Include—To include a SQL statement in the optimize indexes process, select the checkbox in the Include column. |
SQL Text | This pane displays the SQL text of the selected SQL statement. |
Parsed Execution Plan |
This pane displays the execution plan of the selected SQL statement. SQL Statistics—Select this tab to display statistics of the selected statement. |
Select to send your SQL to Optimize SQL. Click the arrow for more options. |
Notes:
- Click to return to the SQL Collection page. (On the SQL Collection page, click Review SQL to go back to the SQL Review page).
To collect a new SQL workload, return to the SQL Collection page and click reset the workload.
Caution: If you click reset the workload, the SQL workload will be lost, as well as any analysis data already gathered for the current session.
To return to the Search Process page, select the Search Process tab.
Search process. Specify search process criteria in the Search Process Control pane. Review the following for additional information:
Search Process Control pane | Description |
Primary goal (minimize) |
Select a primary goal. SQL Optimizer evaluates indexes to optimize workload based on this primary goal. |
Enable advanced process control |
Click the plus sign to enable scheduling options. Scheduled to run on—Click the link to schedule a time to run the optimization process on this workload. Select a start time, end time, duration, and interval.
Stop condition—Select criteria to determine when to end the optimization process. Note: If you do not specify a Stop condition or an End date, the optimization process will run indefinitely. |
Advanced options |
Click to select the number of columns in a composite index, the maximum number of indexes to recommend, and decide whether to generate clustered indexes.
|
Click Start to begin searching for new indexes to improve the workload performance.
To define a new SQL Profiler workload
Click .
Note: SQL Optimizer provides trace templates for different versions of SQL Server. Use the cursor to hover over to display a hint on the location of a Trace Template.
Enter a SQL workload name and select a database connection from which to collect SQL.
Specify SQL filter criteria. Review the following for additional information:
Select SQL filter criteria | Description |
Database |
You must select an Database before selecting other filter criteria. |
Login Name |
Use this field to filter the available SQL before selecting snapshots. |
Application Name |
Use this field to filter the available SQL before selecting snapshots. Default = All |
Select the SQL snapshots from which you want to collect SQL statements. Click a snapshot in the graph to select it. Click the selected snapshot again to deselect it.
Notes:
- Use the cursor to hover over a snapshot to display snapshot details.
- Click List snapshot data to display snapshots in a grid format. Right-click a column heading to select options for filtering, sorting, or displaying.
- You can display additional data in the graph (or in the grid). To do this, select/deselect data options from the group of options at the bottom of the page.
- Select Total in the data options to display the total activity (the activity for all modules, actions, etc.).
Optimize Indexes immediately asks you to choose a second database connection. Select a database connection to use to retrieve execution plans and evaluate index alternatives.
Note: This step allows you to select an alternate database (other than the one used to collect SQL) to run the index optimization process. In other words, you can collect your SQL from one database, but run the optimize indexes process on a second database. The second database must have the same application environment and data volume statistics as the first.
The Search Process page opens. Before specifying search process criteria, you can review and modify your SQL workload.
Note: To restart the SQL collection process, click Collected from <source> to return to the SQL Criteria page. Then click restarted.
Review collected SQL. To review and modify your SQL workload, click Review/adjust workload SQL. Review the following for additional information:
SQL Tuning Set / SQL Workload |
This pane displays the list of SQL in the workload. Include—To include a SQL statement in the optimize indexes process, select the checkbox in the Include column. |
SQL Text | This pane displays the SQL text of the selected SQL statement. |
Parsed Execution Plan |
This pane displays the execution plan of the selected SQL statement. SQL Statistics—Select this tab to display statistics of the selected statement. |
Select to send your SQL to Optimize SQL. Click the arrow for more options. |
Notes:
- Click to return to the SQL Collection page. (On the SQL Collection page, click Review SQL to go back to the SQL Review page).
To collect a new SQL workload, return to the SQL Collection page and click reset the workload.
Caution: If you click reset the workload, the SQL workload will be lost, as well as any analysis data already gathered for the current session.
To return to the Search Process page, select the Search Process tab.
Search process. Specify search process criteria in the Search Process Control pane. Review the following for additional information:
Search Process Control pane | Description |
Primary goal (minimize) |
Select a primary goal. SQL Optimizer evaluates indexes to optimize workload based on this primary goal. |
Enable advanced process control |
Click the plus sign to enable scheduling options. Scheduled to run on—Click the link to schedule a time to run the optimization process on this workload. Select a start time, end time, duration, and interval.
Stop condition—Select criteria to determine when to end the optimization process. Note: If you do not specify a Stop condition or an End date, the optimization process will run indefinitely. |
Advanced options |
Click to select the number of columns in a composite index, the maximum number of indexes to recommend, and decide whether to generate clustered indexes.
|
To define a new Spotlight Statistics Repository Workload
Select a database connection (with a Spotlight Statistics repository) from which to collect a SQL workload.
Note: The database must have a Spotlight Statistics repository. If no Spotlight repository is found, you will see a warning message.
Specify SQL filter criteria. Review the following for additional information:
Select SQL filter criteria | Description |
Monitored Instance |
You must select an Instance before selecting other filter criteria. |
Collected Date |
The date when the data is collected |
Time Collected |
The time when the data is collected. |
Database |
The database in the instance which is monitored. |
Select the workload from which you want to collect SQL statements. Click a workload in the graph to select it. Click the selected workload again to deselect it.
Notes:
You can display additional data in the graph (or in the grid). To do this, select/deselect data options from the group of options at the top of the page.
Optimize Indexes immediately asks you to choose a second database connection. Select a database connection to use to retrieve execution plans and evaluate index alternatives.
Note: This step allows you to select an alternate database (other than the one used to collect SQL) to run the index optimization process. In other words, you can collect your SQL from one database, but run the optimize indexes process on a second database. The second database must have the same application environment and data volume statistics as the first.
The Search Process page opens. Before specifying search process criteria, you can review and modify your SQL workload.
Note: To restart the SQL collection process, click Collected from <source> to return to the SQL Criteria page. Then click restarted.
Review collected SQL. To To review and modify your SQL workload, click Review/adjust workload SQL. Review the following for additional information:
SQL Tuning Set / SQL Workload |
This pane displays the list of SQL in the workload. Include—To include a SQL statement in the optimize indexes process, select the checkbox in the Include column. |
SQL Text | This pane displays the SQL text of the selected SQL statement. |
Parsed Execution Plan |
This pane displays the execution plan of the selected SQL statement. SQL Statistics—Select this tab to display statistics of the selected statement. |
Select to send your SQL to Optimize SQL. Click the arrow for more options. |
Notes:
- Click to return to the SQL Collection page. (On the SQL Collection page, click Review SQL to go back to the SQL Review page).
To collect a new SQL workload, return to the SQL Collection page and click reset the workload.
Caution: If you click reset the workload, the SQL workload will be lost, as well as any analysis data already gathered for the current session.
To return to the Search Process page, select the Search Process tab.
Search process. Specify search process criteria in the Search Process Control pane. Review the following for additional information:
Search Process Control pane | Description |
Primary goal (minimize) |
Select a primary goal. SQL Optimizer evaluates indexes to optimize workload based on this primary goal. |
Enable advanced process control |
Click the plus sign to enable scheduling options. Scheduled to run on—Click the link to schedule a time to run the optimization process on this workload. Select a start time, end time, duration, and interval.
Stop condition—Select criteria to determine when to end the optimization process. Note: If you do not specify a Stop condition or an End date, the optimization process will run indefinitely. |
Advanced options |
Click to select the number of columns in a composite index, the maximum number of indexes to recommend, and decide whether to generate clustered indexes.
|
Click Start to begin searching for new indexes to improve the workload performance.
You can review the results or the progress of your search for new indexes in Optimize Indexes.
To View Optimize Indexes Search Results
Click Open a Saved SQL Workload and select a workload session. Right-click and select Open to open the session.
Note: You can view a summary of the results, or the progress of the search if it is ongoing, in the bottom pane of the Open SQL Workload window.
Search Process tab. In the open session, select the Search Process tab. Use this page to review details related to the search process. Each line on the graph indicates a new indexing recommendation.
Notes:
Latest Results. On the Search Process page, click to view the final recommendation (or the last recommendation if the search process is ongoing).
Review the following for additional information:
Recommended Indexes pane |
Displays a list of the indexes for the recommendation. Index Name—Click an Index name to see the index details. Tip: Select (highlight) an index in the Recommended Indexes list to highlight the SQL statements in the Impacted SQL list that are impacted by that recommended index. |
Impacted SQL pane |
SQL Name—Click a SQL name to review the SQL statement and to compare the recommended execution plan to the original execution plan. Tip: Select (highlight) a SQL statement in the Impacted SQL list to highlight the indexes in the Recommended Indexes list that contributed to the performance improvement of that statement. |
Results Summary pane
|
Displays workload improvement results.
Note: If the links at the bottom of the Results Summary pane are not in view, click and drag the pane's bottom edge down to resize. |
Publish Report |
Click to view the Optimize Indexes Workload Report which you can customize and then export, print, or email. |
Click to create a script to generate the new indexes recommended by Optimize Indexes. |
Notes:
Tip: Use and to navigate back and forth between the pages of a tab.
© ALL RIGHTS RESERVED. 이용 약관 개인정보 보호정책 Cookie Preference Center