# When are DB tables automatically created?

**URL:** <https://forum.inductiveautomation.com/t/when-are-db-tables-automatically-created/15089>\
**Category:** Ignition\
**Tags:** ignition79, database\
**Created:** [August 17, 2017, 2:03am UTC](https://forum.inductiveautomation.com/t/when-are-db-tables-automatically-created/15089 "2017-08-17T02:03:18Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 11, 2018, 3:34pm UTC](https://forum.inductiveautomation.com/t/when-are-db-tables-automatically-created/15089/3 "2018-05-11T15:34:11Z")

</div>

Assuming this is all referring to the Tag Historian modules created tables (`sqlth_` or `sqlt_data_` prefix) then the tables will be recreated as soon as any source of historical data actually _sends_ data to the tag history provider. Tag history providers are automatically created 1:1 with database connections - so as soon as any scan class fires to store history on a new DB the tables will be automatically generated.

---

_[View the full topic](https://forum.inductiveautomation.com/t/when-are-db-tables-automatically-created/15089)._
