# SQL Error overlays that don't make sense

**URL:** <https://forum.inductiveautomation.com/t/sql-error-overlays-that-dont-make-sense/79801>\
**Category:** Ignition\
**Created:** [September 28, 2023, 5:02pm UTC](https://forum.inductiveautomation.com/t/sql-error-overlays-that-dont-make-sense/79801 "2023-09-28T17:02:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bob/32/16899_2.png) [@Bob](https://forum.inductiveautomation.com/u/Bob)\
**Post date:** [September 28, 2023, 5:02pm UTC](https://forum.inductiveautomation.com/t/sql-error-overlays-that-dont-make-sense/79801/1 "2023-09-28T17:02:24Z")

</div>

Note: I am using Ignition v7.9

I am getting overlays indicating SQL Error, but there is no apparent reason why this should be happening. The query is correct, and the expected value is being returned. Other similar queries don't have this problem.

When I select the "Overlay Opt-Out" the overlay is removed, then I de-select the "Overlay Opt-Out" and the overlay does not return.

This has worked fine for years with "local" SQL Server databases, the only difference here is that I am connecting to an Azure SQL database for the first time. I can switch to a local database and the overlay issue is gone. Back to Azure and the overlays return. Not sure if the Azure SQL database is a red herring.

Any thoughts on what could be causing this would be appreciated.

Thanks,  
Bob

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [September 28, 2023, 6:29pm UTC](https://forum.inductiveautomation.com/t/sql-error-overlays-that-dont-make-sense/79801/2 "2023-09-28T18:29:12Z")

</div>

Check this thread on legacy query bindings and see if that is what you are experiencing.  
[Vision client issue - Ignition - Inductive Automation Forum](https://forum.inductiveautomation.com/t/vision-client-issue/72715)

---

<div class="post-metadata">

**Author:** ![Bob](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bob/32/16899_2.png) [@Bob](https://forum.inductiveautomation.com/u/Bob)\
**Post date:** [September 28, 2023, 7:47pm UTC](https://forum.inductiveautomation.com/t/sql-error-overlays-that-dont-make-sense/79801/3 "2023-09-28T19:47:23Z")

</div>

I found the resolution in my case.

It seems it was caused by a dash "-" in the component name which was also being used for the tag name. Replaced the dash with an underscore "\_" (which was vaguely familiar) and the issue went away.
