Skip to main content

Procedure statistics

Home > Select Project > Stat/Report > Procedure statistics

It provides performance-related information such as number of executions, total execution time, logical/physical reads and writes for stored procedures registered in the SQL Server. This allows you to monitor the usage and performance for stored procedures and identify them for optimization.

  • You can analyze the number of executions and total execution time to identify which procedures are having the most usage.

  • I/O performance bottlenecks are detected and optimization targets are identified through logical/physical data for read operations.

  • You can identify resource-intensive queries by checking the execution data of queries inside the procedure.

  • You can identify inefficient queries by comparing total execution time and CPU usage time.

Note

Stored procedures are a set of pre-written SQL commands to perform specific tasks in the SQL Server. They are reusable and parameterized dynamic operations can be performed. It is beneficial for code management and performance enhancement. For more information, see the following link.

Basic usage guide

  1. Select the time and date to view data in Time.

  2. Select a target to view data in Instance.

  3. Select Search icon.

  4. Check the searched results in the Procedure Statistics section and then select the definition column.

    Procedure statistics

  5. Individual query execution information for the selected procedures appears in the Query Statistics section.

Note
  • You can set the Sort by or View count option to display the desired results.

  • When you select Detail icon in the list of the Procedure Statistic section, the Procedure Detail window appears, where you can see detailed information about the procedure. For more information, see the following.

  • When you hover the mouse over the defintion column, the SQL definition code can be previewed.

  • For more information on how to use the Time option, see the following.

Screen guide by section

  • Procedure Statistics

    This area displays key statistical information for each procedure, providing overall performance data for procedures, such as number of executions and total execution time. You can identify procedures that have long execution times or many logical/physical reads.

  • Query Statistics

    In the Procedure Statistics section, when you select the definition column of a specific procedure, individual query execution information for the procedure appears. You can analyze query statistics to identify queries that are being executed repeatedly.

    Procedure statistics

    If the query column is selected, the SQL details window appears.

    SQL detail

Note

For more information about the SQL details window, see the following.

Checking the procedure information details

When you select Detail icon in the list of the Procedure Statistic section, the Procedure Detail window appears, where you can see detailed information about the procedure.

Procedure Detail

  • Procedure Info

    You can see information details on the procedure execution performance data such as physical/logical reads, writes, execution count, and maximum/minimum execution times.

  • Procedure Definition

    The SQL definition code of the procedure can be seen.

Filtering the searched results

Adding the filter conditions

  1. In the Filter option, select .

    Adding condition

  2. In Filter key, select a desired filtering criteria.

    • If the value of the selected item is text, you can select any of Includes (blue) and Excludes (red).

    • If the value of the selected item is number, you can select any condition of == (equal to), >= (greater than or equal to), and <= (less than or equal to).

  3. In Condition, select a condition.

  4. Enter a string or number to match the condition.

  5. Select Apply.

Note
  • To add filtering conditions, select Add and then repeat Step 1 to 5. Added conditions are applied based on AND (&&).

  • To delete some items while adding conditions, select Delete icon on the right of the filter conditions. To delete all conditions, select Delete icon Delete All.

  • To quickly delete the conditions applied to the Filter option, select .

Modifying the filter conditions

Edit filter

Click any applied to the Filter option. If the Edit filter window appears, modify any desired items and then select Apply.

Downloading the viewed result

You can download the search results for each section in CSV file format. Click csv icon on the upper right of the screen and then select Procedure Statistics or Query Statistics.

The name format of the downloaded CSV file is as follows:

  • Procedure Statistics: Procedure_Statistics_YYYYMMDD_HHMMSS.csv

  • Query Statistics: Query_Statistics_YYYYMMDD_HHMMSS.csv