# SQL Components work in Designer, not when project is open

**URL:** <https://forum.inductiveautomation.com/t/sql-components-work-in-designer-not-when-project-is-open/34498>\
**Category:** Ignition\
**Created:** [May 6, 2020, 6:52pm UTC](https://forum.inductiveautomation.com/t/sql-components-work-in-designer-not-when-project-is-open/34498 "2020-05-06T18:52:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 6, 2020, 6:56pm UTC](https://forum.inductiveautomation.com/t/sql-components-work-in-designer-not-when-project-is-open/34498/2 "2020-05-06T18:56:12Z")

</div>

> [@ERROR(500): Error executing function 'RunQuery': The current user does not have the required roles for this operation](http://forum.inductiveautomation.com/t/error-500-error-executing-function-runquery-the-current-user-does-not-have-the-required-roles-for-this-operation/15252/4):
>
> As of Ignition 7.9.4 there’s a new set of client scoped permissions that prevent even authenticated clients, by default, from changing anything on the gateway. [https://docs.inductiveautomation.com/display/DOC79/Project+Properties#ProjectProperties-ClientPermissions](https://docs.inductiveautomation.com/display/DOC79/Project+Properties#ProjectProperties-ClientPermissions)

Use named queries, or enable the legacy DB permission.

---

_[View the full topic](https://forum.inductiveautomation.com/t/sql-components-work-in-designer-not-when-project-is-open/34498)._
