# Force system.tag.queryTagHistory() to use specific historian db

**URL:** <https://forum.inductiveautomation.com/t/force-system-tag-querytaghistory-to-use-specific-historian-db/97774>\
**Category:** Ignition\
**Created:** [October 25, 2024, 2:21pm UTC](https://forum.inductiveautomation.com/t/force-system-tag-querytaghistory-to-use-specific-historian-db/97774 "2024-10-25T14:21:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [October 25, 2024, 2:34pm UTC](https://forum.inductiveautomation.com/t/force-system-tag-querytaghistory-to-use-specific-historian-db/97774/2 "2024-10-25T14:34:04Z")

</div>

There are tag paths and history paths. If you give the historian a simple tag path, it will look up the tag's storage provider and convert to a local history path. If you want anything else, you need to provide a history path instead of a simple tag path.

See this topic:

> [@Is the extended tag path format for history queries documented?](https://forum.inductiveautomation.com/t/is-the-extended-tag-path-format-for-history-queries-documented/96730):
>
> I was doing some hackish things with a history DB, and landed in a situation where I could no longer see the history for one specific tag using system.tag.queryTagHistory. Just to make sure I wasn't fumbling a parameter, I tried a history binding in Perspective for the same tag and it worked. Then I noticed that the designer UI had built the tag path in a form I've never seen documented. I tried that path with queryTagHistory and it got data. I was using a more simple: my\_hist = system.tag.qu…

---

_[View the full topic](https://forum.inductiveautomation.com/t/force-system-tag-querytaghistory-to-use-specific-historian-db/97774)._
