# Memory Tag - Database

**URL:** <https://forum.inductiveautomation.com/t/memory-tag-database/20495>\
**Category:** Ignition\
**Created:** [November 1, 2018, 9:58pm UTC](https://forum.inductiveautomation.com/t/memory-tag-database/20495 "2018-11-01T21:58:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rroca](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@rroca](https://forum.inductiveautomation.com/u/rroca)\
**Post date:** [November 1, 2018, 9:58pm UTC](https://forum.inductiveautomation.com/t/memory-tag-database/20495/1 "2018-11-01T21:58:12Z")

</div>

Hiii,

Is it possible to save a memory tag (DataSet type) in the Database?

---

<div class="post-metadata">

**Author:** ![ethomason](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ethomason/32/43338_2.png) [@ethomason](https://forum.inductiveautomation.com/u/ethomason)\
**Post date:** [November 1, 2018, 10:23pm UTC](https://forum.inductiveautomation.com/t/memory-tag-database/20495/2 "2018-11-01T22:23:50Z")

</div>

Yes, you can loop through the dataset and build your insert statement.

[Here’s an example](http://forum.inductiveautomation.com/t/insert-power-table-into-db-table/18369/11)

---

<div class="post-metadata">

**Author:** ![nicholas](https://avatars.discourse-cdn.com/v4/letter/n/4da419/32.png) [@nicholas](https://forum.inductiveautomation.com/u/nicholas)\
**Post date:** [November 1, 2018, 10:25pm UTC](https://forum.inductiveautomation.com/t/memory-tag-database/20495/3 "2018-11-01T22:25:02Z")

</div>

Alternatively, you can use the `system.dataset.toCSV` function to turn a dataset into a string and then store it as text in an appropriately sized `TEXT` column. Then, when reading it back, `system.dataset.fromCSV` converts the text back into a dataset.
