# Easy Chart: error reading Database Pen

**URL:** <https://forum.inductiveautomation.com/t/easy-chart-error-reading-database-pen/10786>\
**Category:** General Discussion\
**Created:** [November 13, 2015, 2:47pm UTC](https://forum.inductiveautomation.com/t/easy-chart-error-reading-database-pen/10786 "2015-11-13T14:47:33Z")\
**Posts on this page:** 2\
**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 13, 2015, 2:47pm UTC](https://forum.inductiveautomation.com/t/easy-chart-error-reading-database-pen/10786/1 "2015-11-13T14:47:33Z")

</div>

Hi,  
I’d like to plot data from a SQL Server database table in an Easy Chart. I use a Database Pen for that.  
The table is in a schema of its own named logs. The pen editor can see the table and the Run diagnostics validates my pen configuration correctly:  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/ba5a2fee6a9f47880f7a27b05256f8ba1ea612bb.jpg)  
  
But as soon as the Easy Chart component gets running, I get the following error:

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/acd4f8fcfffc2a3b25cc8a1dba275395786dedcd.jpg)  
  
It seems that Ignition forgets that my table is not in the dbo default schema, hence the wrong query SELECT … FROM tbl\_AuxHistory instead of FROM logs.tbl\_AuxHistory .  
Any suggestions, other then transfering the table in the default schema?

Thank you in advance,  
regards

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 13, 2015, 4:42pm UTC](https://forum.inductiveautomation.com/t/easy-chart-error-reading-database-pen/10786/2 "2015-11-13T16:42:48Z")

</div>

Have you tried adding the ‘logs.’ in the table name field without using the drop-down?
