# Query Tag drops connection to existing database in gateway

**URL:** <https://forum.inductiveautomation.com/t/query-tag-drops-connection-to-existing-database-in-gateway/68585>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [January 13, 2023, 8:39pm UTC](https://forum.inductiveautomation.com/t/query-tag-drops-connection-to-existing-database-in-gateway/68585 "2023-01-13T20:39:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Hunt](https://avatars.discourse-cdn.com/v4/letter/b/0ea827/32.png) [@Ben\_Hunt](https://forum.inductiveautomation.com/u/Ben_Hunt)\
**Post date:** [January 13, 2023, 8:39pm UTC](https://forum.inductiveautomation.com/t/query-tag-drops-connection-to-existing-database-in-gateway/68585/1 "2023-01-13T20:39:49Z")

</div>

I am running Ignition as trial for local development purposes so our main production server isn't bogged down.  
I have multiple query tags which frequently error with the following diagnostic message: `The database connection 'ShopOrderData' does not exist.` I find this odd since the connection does exist in the gateway. This isn't specific to one database either.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/0/90bbcadbc6dd81857371ea6d179572247ced2078.png)  
I have tried querying the DB from the scripting console and I get no errors. I am able to fix the tag by reformatting the query and saving the change. Once I save the new change to the tag it goes back to normal and connects to the DB.

**Question** : Is this related to the `SQL bridge` being disabled after the trial expires? If not, why do my tags lose connection so frequently?

This isn't an issue for our main production server.

---

<div class="post-metadata">

**Author:** ![Ayanna\_Brown](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ayanna_brown/32/38406_2.png) [@Ayanna\_Brown](https://forum.inductiveautomation.com/u/Ayanna_Brown)\
**Post date:** [January 25, 2023, 10:25pm UTC](https://forum.inductiveautomation.com/t/query-tag-drops-connection-to-existing-database-in-gateway/68585/2 "2023-01-25T22:25:25Z")

</div>

This is due to the Gateway being in Trial mode. When the trial mode is restarted, does the error continue to occur?

---

<div class="post-metadata">

**Author:** ![Ben\_Hunt](https://avatars.discourse-cdn.com/v4/letter/b/0ea827/32.png) [@Ben\_Hunt](https://forum.inductiveautomation.com/u/Ben_Hunt)\
**Post date:** [January 25, 2023, 10:52pm UTC](https://forum.inductiveautomation.com/t/query-tag-drops-connection-to-existing-database-in-gateway/68585/3 "2023-01-25T22:52:05Z")

</div>

The error persists across trial restarts. I have to go to the query tag in question and edit the query (reformat usually) and save in order for it to actually refresh the connection and the error disappears. I am on version 8.0.12.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 25, 2023, 10:54pm UTC](https://forum.inductiveautomation.com/t/query-tag-drops-connection-to-existing-database-in-gateway/68585/4 "2023-01-25T22:54:56Z")

</div>

Pssst! v8.0 has been end-of-life for a long time now. You can upgrade to v8.0.17 to see if that fixes it, but brace yourself for a v8.1 upgrade. (v8.1 is an LTS. v8.0 was not, following longstanding IA policies.)

---

<div class="post-metadata">

**Author:** ![Ben\_Hunt](https://avatars.discourse-cdn.com/v4/letter/b/0ea827/32.png) [@Ben\_Hunt](https://forum.inductiveautomation.com/u/Ben_Hunt)\
**Post date:** [January 25, 2023, 11:01pm UTC](https://forum.inductiveautomation.com/t/query-tag-drops-connection-to-existing-database-in-gateway/68585/5 "2023-01-25T23:01:03Z")

</div>

Yeah I figured it had something to do with being on an old version. Thanks.
