# Using system.tag.queryHistory to query history from another database?

**URL:** <https://forum.inductiveautomation.com/t/using-system-tag-queryhistory-to-query-history-from-another-database/108750>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [July 22, 2025, 2:05am UTC](https://forum.inductiveautomation.com/t/using-system-tag-queryhistory-to-query-history-from-another-database/108750 "2025-07-22T02:05:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [July 22, 2025, 2:05am UTC](https://forum.inductiveautomation.com/t/using-system-tag-queryhistory-to-query-history-from-another-database/108750/1 "2025-07-22T02:05:57Z")

</div>

I have a backup database that I would like to use to query tag history from using the standard `system.tag.queryHistory` function.. however it seems as though the function is tied directly to the history config on the tags themselves. e.g. if a tag's history provider is set to A, I can't tell the function to query from B instead.

Is the only option to replicate this function myself? 💀

---

<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:** [July 22, 2025, 3:14am UTC](https://forum.inductiveautomation.com/t/using-system-tag-queryhistory-to-query-history-from-another-database/108750/2 "2025-07-22T03:14:52Z")

</div>

Use QualifiedPath objects instead of TagPath objects in your lists.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [July 22, 2025, 3:25am UTC](https://forum.inductiveautomation.com/t/using-system-tag-queryhistory-to-query-history-from-another-database/108750/3 "2025-07-22T03:25:17Z")

</div>

Of course! I was testing with the Vision EasyChart which doesn't have a GUI for choosing the history provider like the Perspective Power Chart does and it corrupted my thoughts.

Cheers
