The SQL Analysis options determine what data is collected and displayed on the SQL Analysis - Workload view and the SQL Analysis page of the SQL Activity drilldown.
Note: Enabling SQL Analysis may adversely affect the performance of your SQL Server. SQL Analysis data collection puts extra load on your SQL Server; the more data you collect the more the load.
To open the SQL Analysis dialog
Location | Action | More Information |
---|---|---|
Spotlight Drilldown |
Open the drilldown: Monitor| SQL Activity Click SQL Analysis. |
The SQL Analysis dialog opens with the connection for the Spotlight Drilldown selected. |
Spotlight Ribbon |
Click Configure | SQL Analysis
|
The SQL Analysis dialog opens with Default Settings selected. |
Settings in the SQL Analysis dialog
Option | Description |
---|---|
Select connection to configure |
Select the connection name to configure an individual connection. Select Default Settings to configure the default settings for all connections. |
Override the default settings |
For an individual connection, select this option to configure the connection differently to the default settings. For default settings, select this option to configure default settings for SQL Analysis. Clear this option to reset the configuration settings to the shipped defaults. |
Enable SQL Analysis |
Select to enable SQL Analysis. SQL Analysis is disabled by default. Note:
|
Filters determine what SQL Analysis data is collected from the SQL Server instance.
Notes:
Option | Description |
---|---|
Get these Event Classes |
Select the event classes to be collected from the SQL Server instance. |
Filters |
The list of filters applied to the SQL Server instance. |
Add |
Click to create a filter. Tips:
|
Edit | Click to modify the selected filter. |
Remove | Click to delete the selected filter. |
Clear | Click to turn off filtering. All filters are removed. |
The options on the Data Collection page specify the method and time frame for the collection of SQL Analysis data.
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. You must also enter a value for Server trace file location. Server Side trace is more suitable for busy servers than Rowset trace. | |
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 Spotlight 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 Spotlight Diagnostic Server. The Spotlight 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 Spotlight Diagnostic Server can connect to. For example, \\computername\Trace Files. This option is not available when configuring default settings. |
Spotlight aggregates the data collected for SQL Analysis and then stores only the aggregated data.
Option | Description |
---|---|
Aggregate the top n SQL statements |
Enter the maximum number of SQL executions to be retrieved from the SQL Server instance. The default is 200. |
Sorting by |
This setting determines what the top SQL executions are to collect. Choose from Average Duration, Average CPU, or Average I/O. When the limit is reached, the least significant records are discarded as new executions are collected. |