# Monitor SQL Server Jobs Using DQL for Performance Insights

**URL:** <https://community.dynatrace.com/t/monitor-sql-server-jobs-using-dql-for-performance-insights/52087>\
**Category:** DQL\
**Tags:** dql, sql\
**Created:** [June 13, 2025, 12:49pm UTC](https://community.dynatrace.com/t/monitor-sql-server-jobs-using-dql-for-performance-insights/52087 "2025-06-13T12:49:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DBAJames](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@DBAJames](https://community.dynatrace.com/u/DBAJames)\
**Post date:** [June 13, 2025, 12:49pm UTC](https://community.dynatrace.com/t/monitor-sql-server-jobs-using-dql-for-performance-insights/52087/1 "2025-06-13T12:49:10Z")

</div>

In the dashboard i have added the DQL from the example but it doesnt work as suggested.  
if i set it to 5 mins, i dont see any failed jobs.&nbsp; if i set it to 30 i get lots of duplication and sometimes ones that are no longer failing.  
its not clear to me why the time change would have that affect:

fetch logs, from:now()-5m  
| filter matchesValue(dt.extension.name, “com.dynatrace.extension.sql-server”)  
| filter matchesValue(event.group, “failed\_jobs”)  
| fields job\_name, step\_name, outcome, content, duration, instance, server, sql\_severity, retries\_attempted, start\_execution\_date, stop\_execution\_date  
| sort stop\_execution\_date desc

---

<div class="post-metadata">

**Author:** ![izabelarokita](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/izabelarokita/32/41812_2.png) [@izabelarokita](https://community.dynatrace.com/u/izabelarokita)\
**Post date:** [December 17, 2025, 12:01pm UTC](https://community.dynatrace.com/t/monitor-sql-server-jobs-using-dql-for-performance-insights/52087/2 "2025-12-17T12:01:17Z")

</div>

Hey&nbsp;[@DBAJames](https://community.dynatrace.com/user/84707)&nbsp;,  
I just wanted to check in and see if you still need help with this. If so, I’d be happy to look into it for you!&nbsp;:blush:  
Please let me know what works best for you.

---

<div class="post-metadata">

**Author:** ![DBAJames](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@DBAJames](https://community.dynatrace.com/u/DBAJames)\
**Post date:** [December 18, 2025, 9:56am UTC](https://community.dynatrace.com/t/monitor-sql-server-jobs-using-dql-for-performance-insights/52087/3 "2025-12-18T09:56:55Z")

</div>

I still have an issue with this, writing this so subsequent succesfull runs remove the log would be good.

---

<div class="post-metadata">

**Author:** ![CDoorbar83](https://avatars.discourse-cdn.com/v4/letter/c/c37758/32.png) [@CDoorbar83](https://community.dynatrace.com/u/CDoorbar83)\
**Post date:** [January 28, 2026, 11:35am UTC](https://community.dynatrace.com/t/monitor-sql-server-jobs-using-dql-for-performance-insights/52087/4 "2026-01-28T11:35:46Z")

</div>

How do i enable Sql server job events?  
there are no metrics available in the feature sets, and cant see where i enable logs events for jobs?

 ![CDoorbar83_0-1769600108034.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/b/7bda2dcdf552d7335c5a3bb27173154c9bc10908.png)
