Submit a ticketCall us

AnnouncementsFace your biggest database issues head-on

Our new eCourse helps you navigate SQL Server performance blocks by teaching you how to recognize and deal with the three DBA Disruptors: Performance Hog, Blame Shifter, and Query Blocker. Register today to learn how to defend your environment and fend off menacing disruptions.

Register for your free eCourse.

Home > Success Center > Database Performance Analyzer (DPA) > DPA - Knowledgebase Articles > (inserted by DPA) in SQL text

(inserted by DPA) in SQL text

Table of contents

Updated September 14, 2016


DPA has some items in the SQL text that we collect where it will insert a comment such as the following:

/* (inserted by DPA)
Procedure: [dbo].sp_someProcedure
Character Range: 4906 to 6649 
Waiting on statement:

This sometimes gets mistaken as a procedure DPA is running but, this isn't want this means. This article is to explain why you will see this in the DPA and what it is doing. 


DPA for SQL server


This is not being run by DPA. DPA is trying to give you a hint on where this is run from. 
DPA shows the SQL running and the wait time for SQL statements. If DPA sees stored procedures for example, these have many statements. If for example you had one that had an Insert, an Update, and a select, DPA will show the wait time for each as separate SQL hash values. It also will try to map the statement to the stored procedure. Usually if we grab the name of the stored procedure it will show in the comment block.


Last modified