# Identify the lead blocking SQL Statement on a monitored server

**URL:** <https://community.dynatrace.com/t/identify-the-lead-blocking-sql-statement-on-a-monitored-server/41652>\
**Category:** Extensions\
**Tags:** databases, mssql, extensions\
**Created:** [September 14, 2023, 7:13pm UTC](https://community.dynatrace.com/t/identify-the-lead-blocking-sql-statement-on-a-monitored-server/41652 "2023-09-14T19:13:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bcweatherford](https://avatars.discourse-cdn.com/v4/letter/b/d78d45/32.png) [@bcweatherford](https://community.dynatrace.com/u/bcweatherford)\
**Post date:** [September 14, 2023, 7:13pm UTC](https://community.dynatrace.com/t/identify-the-lead-blocking-sql-statement-on-a-monitored-server/41652/1 "2023-09-14T19:13:42Z")

</div>

I’m looking for a way in Grail, if possible, to identify the lead blocking SQL Statement on a monitored server.&nbsp; I’m pretty new to both Dynatrace and Grail.

Any help is appreciated.

Thanks.

---

<div class="post-metadata">

**Author:** ![vagiz\_duseev](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/vagiz_duseev/32/39484_2.png) [@vagiz\_duseev](https://community.dynatrace.com/u/vagiz_duseev)\
**Post date:** [December 12, 2023, 4:12pm UTC](https://community.dynatrace.com/t/identify-the-lead-blocking-sql-statement-on-a-monitored-server/41652/2 "2023-12-12T16:12:56Z")

</div>

Just a couple of clarifying questions:

1. Are you looking for a statement that causes the most total block time within a given time window?
2. How do you currently collect information about queries?
3. Do you have the latest 2.0.0 remote SQL Server monitoring extension installed?
