Click Configure | SQL Analysis
Configure the following fields on the Data Collection page:
Option | Description |
---|---|
SQL Analysis is scheduled to collect every n minutes |
Note: This feature is available only in Spotlight on SQL Server Enterprise. How often Spotlight collects SQL Analysis data. The default is six hours. To change how often Spotlight collects SQL Analysis data
|
Select to use Rowset trace to collect SQL Analysis data. Rowset trace is convenient though may affect throughput on busy servers. It should be used with care. | |
Select to use sampling Server Side trace to collect SQL Analysis data. Server Side trace is more suitable for busy servers than Rowset trace. Server Side trace requires additional configuration. | |
Run trace for or until trace file reaches |
Server Side trace will run until one of these conditions is met. Specify the maximum amount of time Server Side trace should run for. Specify the maximum size of the trace file. |
Server trace file location (on the SQL Server host) |
Type a location for the server trace file. The path is relative to the SQL Server instance. For example, C:\Trace Files. |
Retrieve data through SQL Server |
Select to process trace files on the SQL Server instance. This option has the potential to affect throughput on busy servers. Use this option when there are permission or firewall settings preventing the Diagnostic Server machine from retrieving files from the SQL Server machine. This is the default option. |
Retrieve data from the file system |
Select to process trace files on the Diagnostic Server. The Diagnostic Server machine must have the appropriate permissions required to connect to the SQL Server instance. This option is not available when configuring default settings. |
Trace file location (from Diagnostic Server host) |
Type the location of the server trace files on the SQL Server instance. The location should be a shared folder the Diagnostic Server can connect to. For example, \\computername\Trace Files. This option is not available when configuring default settings. |
You can use the SQL Analysis grid when load testing in a testing environment. It shows SQL Analysis data in real time.
If you are trying to answer the question “I am simulating application workload in my test environment and I want to look at a breakdown of SQL statements in real-time. I am interested in what SQL statements are consuming the most average CPU right now.”, you would want to look at an aggregate of SQL statement executions (workload) in real-time. The SQL Analysis grid in the SQL Activity drilldown allows you to do exactly that.
Click Monitor | SQL Activity.
Do the following:
To identify | Sort the grid by |
---|---|
SQL that consumed the most CPU |
Total CPU |
The average CPU consumed by a particular statement |
Average CPU |
SQL that was executed the most |
Execution Count |
SQL with the highest logical I/O |
Average Reads |
Tips:
Results are cleared when you leave the SQL Analysis grid. Click Clear Grid to clear the grid manually.
To wrap a column onto multiple lines, right-click the data content of the grid and select Properties | Options.
Note: Word wrap may degrade the performance of Spotlight.
To filter the data displayed
Start from the data displayed in the SQL Analysis grid
SQL Analysis grid |
---|
|
To add a filter to the list
|
Tips:
To filter the data collected
Click Configure | SQL Analysis.
Select Override the default settings.
Select Enable SQL Analysis.
Ensure the Filters page is selected.
Click Add.
Tips:
Tips:
Spotlight aggregates the data collected and then stores only the aggregated data.
When troubleshooting SQL Server performance issues, one area you can focus your investigation on is waits. Long wait times can be an indicator of performance bottlenecks so identifying where waits are occurring may assist you in your tuning efforts.
Spotlight not only provides an easy way to see if your SQL server has a problem with waits but also identifies on which particular resource waits are occurring. Spotlight takes the raw data from SQL Server and automatically calculates the rate of wait over time so you have a more current perspective.
To start your investigation into waits, go to the SQL Activity drilldown and click the Wait Statistics tab.
The Waits Detail grid shows detailed waits statistics for the SQL Server instance being monitored. It shows all wait types in SQL Server and breaks down the statistics into signal time and resource wait time. (SQL Server provides only wait time and signal wait time.) By default, the Waits Detail grid is sorted by Wait Time Rate (ms/s) which allows you to immediately see which wait types are being waited on right now.
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center