# SQL Query - Polling Mode

**URL:** <https://forum.inductiveautomation.com/t/sql-query-polling-mode/22290>\
**Category:** Ignition\
**Created:** [February 1, 2019, 2:49pm UTC](https://forum.inductiveautomation.com/t/sql-query-polling-mode/22290 "2019-02-01T14:49:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kfells](https://avatars.discourse-cdn.com/v4/letter/k/b2d939/32.png) [@kfells](https://forum.inductiveautomation.com/u/kfells)\
**Post date:** [February 1, 2019, 2:49pm UTC](https://forum.inductiveautomation.com/t/sql-query-polling-mode/22290/1 "2019-02-01T14:49:50Z")

</div>

Hello All,  
I am trying to pull recipe values based on sql query bindings. I have the Polling Mode set to OFF, and noticed that the query is not updating when the where clause tag values have changed. The query only updates when I open the window. Is there anyway to update the recipe automatically based on the where clause? Do I have to change the polling mode?

Thanks

---

<div class="post-metadata">

**Author:** ![ryanjmclaughlin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryanjmclaughlin/32/4318_2.png) [@ryanjmclaughlin](https://forum.inductiveautomation.com/u/ryanjmclaughlin)\
**Post date:** [February 1, 2019, 2:51pm UTC](https://forum.inductiveautomation.com/t/sql-query-polling-mode/22290/2 "2019-02-01T14:51:07Z")

</div>

Can you show a screenshot of how your binding is configured?

---

<div class="post-metadata">

**Author:** ![kfells](https://avatars.discourse-cdn.com/v4/letter/k/b2d939/32.png) [@kfells](https://forum.inductiveautomation.com/u/kfells)\
**Post date:** [February 1, 2019, 2:59pm UTC](https://forum.inductiveautomation.com/t/sql-query-polling-mode/22290/3 "2019-02-01T14:59:22Z")

</div>

The query is set up on a multi-state indicator, with a style customizer and propertyChange script to write this value back to the PLC
