# Connecting to New Database

**URL:** <https://forum.inductiveautomation.com/t/connecting-to-new-database/14066>\
**Category:** Ignition\
**Created:** [April 17, 2017, 4:27pm UTC](https://forum.inductiveautomation.com/t/connecting-to-new-database/14066 "2017-04-17T16:27:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcamp](https://avatars.discourse-cdn.com/v4/letter/d/a88e4f/32.png) [@dcamp](https://forum.inductiveautomation.com/u/dcamp)\
**Post date:** [April 17, 2017, 4:27pm UTC](https://forum.inductiveautomation.com/t/connecting-to-new-database/14066/1 "2017-04-17T16:27:20Z")

</div>

Do I need to create a database first and then just connect to it from Ignition?

I can create a SQL database with all the tables that I need and do the relationship between the table.

All I am looking for is to store the tag values into several different tables so that I can generate various type of reports from that information. (Example: Trends, graphs, line charts, chart totals for daily, monthly or let the end user submit sql query’s)

Thanks

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [April 17, 2017, 5:37pm UTC](https://forum.inductiveautomation.com/t/connecting-to-new-database/14066/2 "2017-04-17T17:37:23Z")

</div>

The [docs](https://docs.inductiveautomation.com:8443/display/DOC79/Configuring+Tag+Historian) on configuring tag history give you all the steps. You don’t need to create the tables, since Ignition will do that for you – just create the database itself and connect Ignition to it.

---

<div class="post-metadata">

**Author:** ![dcamp](https://avatars.discourse-cdn.com/v4/letter/d/a88e4f/32.png) [@dcamp](https://forum.inductiveautomation.com/u/dcamp)\
**Post date:** [April 17, 2017, 8:24pm UTC](https://forum.inductiveautomation.com/t/connecting-to-new-database/14066/3 "2017-04-17T20:24:33Z")

</div>

Thank you - That gets me started.
