# Get database active queries

**URL:** <https://forum.inductiveautomation.com/t/get-database-active-queries/75930>\
**Category:** Ignition\
**Tags:** scripting, database\
**Created:** [July 5, 2023, 11:50am UTC](https://forum.inductiveautomation.com/t/get-database-active-queries/75930 "2023-07-05T11:50:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andres\_Arroyo](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@Andres\_Arroyo](https://forum.inductiveautomation.com/u/Andres_Arroyo)\
**Post date:** [July 5, 2023, 11:50am UTC](https://forum.inductiveautomation.com/t/get-database-active-queries/75930/1 "2023-07-05T11:50:55Z")

</div>

I usually see some Active Queries taking too much time, and I'm not aware until I logged in to the gateway and navigate to Status/Connections/Databases/. I there any way to create some kind of alarm to get push notifications whenever a query takes more than xx minutes to be executed?
