# Store and Forward for DB insert via script

**URL:** <https://forum.inductiveautomation.com/t/store-and-forward-for-db-insert-via-script/23324>\
**Category:** Ignition\
**Created:** [March 14, 2019, 9:16am UTC](https://forum.inductiveautomation.com/t/store-and-forward-for-db-insert-via-script/23324 "2019-03-14T09:16:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pawel.kondol](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@pawel.kondol](https://forum.inductiveautomation.com/u/pawel.kondol)\
**Post date:** [March 14, 2019, 9:16am UTC](https://forum.inductiveautomation.com/t/store-and-forward-for-db-insert-via-script/23324/1 "2019-03-14T09:16:03Z")

</div>

HI All,

Can database insert through scripting for Store and Forward. Is this function available and how to enable it. There are occasions when DB is down for few minutes and I have few scripts to add manually downtime on the line. So I would like to be able to add this in to Store and Forward if DB is not available.

Thanks in advance  
Pawel

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [March 14, 2019, 9:51am UTC](https://forum.inductiveautomation.com/t/store-and-forward-for-db-insert-via-script/23324/2 "2019-03-14T09:51:47Z")

</div>

E.g. Instead of using: system.db.runUpdateQuery

Use: system.db.runSFUpdateQuery

---

<div class="post-metadata">

**Author:** ![pawel.kondol](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@pawel.kondol](https://forum.inductiveautomation.com/u/pawel.kondol)\
**Post date:** [March 20, 2019, 7:33am UTC](https://forum.inductiveautomation.com/t/store-and-forward-for-db-insert-via-script/23324/3 "2019-03-20T07:33:49Z")

</div>

Thanks for your help.
