# Using a script to enable tag history and setting the database

**URL:** <https://forum.inductiveautomation.com/t/using-a-script-to-enable-tag-history-and-setting-the-database/107445>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 16, 2025, 8:33pm UTC](https://forum.inductiveautomation.com/t/using-a-script-to-enable-tag-history-and-setting-the-database/107445 "2025-06-16T20:33:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [June 16, 2025, 8:57pm UTC](https://forum.inductiveautomation.com/t/using-a-script-to-enable-tag-history-and-setting-the-database/107445/2 "2025-06-16T20:57:18Z")

</div>

Post code, not pictures of code, it helps others while troubleshooting. Please see [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831). You can edit your post by clicking the pencil icon in the lower right.

Have you confirmed that the rest of your changes are being applied? Or is the script failing entirely? Have you confirmed that the history provider that you are specifying actually exists as a history provider in your gateway?

---

_[View the full topic](https://forum.inductiveautomation.com/t/using-a-script-to-enable-tag-history-and-setting-the-database/107445)._
