# Need to lock resource access?

**URL:** <https://forum.inductiveautomation.com/t/need-to-lock-resource-access/10821>\
**Category:** General Discussion\
**Created:** [November 24, 2015, 4:02pm UTC](https://forum.inductiveautomation.com/t/need-to-lock-resource-access/10821 "2015-11-24T16:02:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [November 24, 2015, 4:02pm UTC](https://forum.inductiveautomation.com/t/need-to-lock-resource-access/10821/1 "2015-11-24T16:02:36Z")

</div>

Hi,  
I have 4 tags which are instances of the same User Data Type. One member of the User Data Type has a script attached to the Value Changed Event: this script will access a MS SQL Server database through the default database connection, that I defined in the gateway configuration. My question is: if the 4 events are fired at the same time, do I need to synchronize the access to the database from the 4 tag events scripts or is it Ignition itsself that do it for me?

Thank you in advance,  
regards

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 24, 2015, 4:07pm UTC](https://forum.inductiveautomation.com/t/need-to-lock-resource-access/10821/2 "2015-11-24T16:07:36Z")

</div>

You don’t need to manage concurrent access to datasources.

---

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [November 24, 2015, 4:46pm UTC](https://forum.inductiveautomation.com/t/need-to-lock-resource-access/10821/3 "2015-11-24T16:46:14Z")

</div>

Ok, thank you Kevin!
