SQL Dashboard: Live Query Results Next to Your PLC Data

Write one SELECT, choose how often it runs, and the result is a live tile on the same canvas as your machines. Production targets, order counts and MES values, side by side with the shop floor.

Basic is free forever and runs fully offline on one Windows PC.

What SignalStream Studio reads over SQL

  • Microsoft SQL Server, MySQL and PostgreSQL, with no ODBC driver to install
  • The first column of the first row of a single SELECT statement, refreshed on a schedule you set (every 30 seconds by default)
  • Numbers, text, true/false and dates; decimals become numbers and dates are shown as ISO text

Not supported

  • Anything but a single plain SELECT. INSERT, UPDATE, DELETE, stored procedure calls, SELECT ... INTO and stacked statements are rejected before they run.
  • Tables or multi-row results in one input. Each input is one value; use one query per tile.
  • Other databases such as Oracle or SQLite.

Set up a SQL input in the wizard

A live Test Poll must succeed before Save is enabled, so a wrong address shows up now, not on the floor. Every field is listed in the Data Inputs reference.

  1. Create a database login that only has SELECT permission on the tables you need. Studio blocks writes itself, but a read-only login is the second layer.
  2. Click Add Input and choose SQL Database, then pick SQL Server, MySQL or PostgreSQL.
  3. Enter the host, port (1433, 3306 or 5432 by default), database name, username and password.
  4. Write a SELECT that returns one value, for example SELECT COUNT(*) FROM orders WHERE status = 'shipped'.
  5. Set the poll interval in seconds and click Test Poll. Studio validates the query, runs it and shows the result.
  6. Save, bind a widget to the input and hit Publish.

Example: shift target against live output

A plant keeps its shift plan in SQL Server. One query returns today's target, another the units booked so far, and a third the open work orders. On the canvas they sit beside live line counts from the PLCs, so the gap to plan is visible at a glance.

Mix SQL with your other sources

SQL is how business numbers get onto the floor screen. Put a target from SQL Server next to live counts from Modbus, S7 or Logix on the same canvas. Every input runs on its own schedule, so a slow query never holds up the machine values.

The same dashboard on a phone, laptop or TV

Basic runs the dashboard on the plant PC, fully offline. On Standard and above, the same published dashboard is live in any browser through the Remote Web Dashboard: viewers install nothing, and the values travel over an encrypted connection from the plant PC. The plant PC only connects outbound, so you never open an inbound port, set up port forwarding or run a VPN.

SQL FAQ

Can a query change my database?

No. Every query is parsed before it is saved and again before it runs, and anything other than a single plain SELECT is rejected, including writes hidden inside CTEs or SELECT ... INTO. Use a SELECT-only database login as a second layer.

How often does the query run?

Every 30 seconds by default. You set the interval per input, down to 1 second, though business data rarely needs more than every 30 seconds to a few minutes.

Can I show a whole table?

Not in one input. Each SQL input returns a single value, the first column of the first row. Use one query per number you want on screen.

Which databases are supported?

Microsoft SQL Server, MySQL and PostgreSQL. MariaDB generally works with the MySQL option.

Do I need ODBC or a database client installed?

No. Studio connects to SQL Server, MySQL and PostgreSQL with its own built-in drivers. You only need network access to the database port.

Read your first SQL value today.

Basic is free, forever, offline. Upgrade only when you need the dashboard off the floor.