# Can I read data from another softwares database?

**URL:** <https://discourse.processing.org/t/can-i-read-data-from-another-softwares-database/15733>\
**Category:** Project Guidance\
**Created:** [November 23, 2019, 6:44am UTC](https://discourse.processing.org/t/can-i-read-data-from-another-softwares-database/15733 "2019-11-23T06:44:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Teljemo](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/teljemo/32/6486_2.png) [@Teljemo](https://discourse.processing.org/u/Teljemo)\
**Post date:** [November 23, 2019, 6:44am UTC](https://discourse.processing.org/t/can-i-read-data-from-another-softwares-database/15733/1 "2019-11-23T06:44:18Z")

</div>

Hi!  
I recently found out and have been shown the potential of using processing to create small programs dealing with information like production times 😊

Now I wondered… I have a lot of data in a production planning system. I don’t know if I can access it, I’ll have to chat with the it supplier on that.  
But if I could find data in this other software that tells how much work is planned to run in a machine For example. I could draw staples and diagrams in processing that would live update from the input data in the other software?

Does it sound possible?  
Maybe our software supplier would need to create a script on there behalf to get the numbers I need and put them in a place where processing can read?

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [November 23, 2019, 7:23am UTC](https://discourse.processing.org/t/can-i-read-data-from-another-softwares-database/15733/2 "2019-11-23T07:23:05Z")

</div>

databases are complex,

-a- you can get data from them like by SQL

> **[GitHub - fjenett/sql-library-processing: SQLibrary – a SQL database library...](https://github.com/fjenett/sql-library-processing)**
>
> SQLibrary – a SQL database library for Processing incl. MySQL, SQLite and PostgreSQL - GitHub - fjenett/sql-library-processing: SQLibrary – a SQL database library for Processing incl. MySQL, SQLite...

requires not only the skills to write it  
the knowledge of the database structure  
also the full (read) access to the database  
and the network connection.

-b- usually a database is of some use,  
like generate reports LIKE A TO-DO LIST on paper ( for people )  
or directly send setpoints to machines

for data exchange a file format would be

> CSV file

that is not only human readable LIST ( just separated by “,” )  
it can be even generated / edited by us.  
( using simple editors or spread sheet tools (not really need a full ms excel ))

that is where it is preferred over JSON what most probably  
will not be typed edited by you.

in case no network exists you can get a CSV file from that database report generator  
by email or USB stick …  
( after that IT manager created / run that report for you )

and use that file with processing

> **[loadTable() / Reference](https://processing.org/reference/loadTable_.html)**
>
> Reads the contents of a file or URL and creates a Table object with its values. If a file is specified, it must be located in the sketch's "data" folder. The filename parameter can also be a URL to a …

> **[Table / Reference](https://processing.org/reference/Table.html)**
>
> Table objects store data with multiple rows and columns, much like in a traditional spreadsheet. Tables can be generated from scratch, dynamically, or using data from an existing file. Tables c…

what has a little bit other syntax as arrayList or JSON  
but is same powerful.  
( so not show us later some code where you struggle to convert “table” to “array”  
there is rarely the need to do that )

* * *

bar code / QR code reader ( sticker on parts? )  
might be connectable too.

* * *

---

<div class="post-metadata">

**Author:** ![Teljemo](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/teljemo/32/6486_2.png) [@Teljemo](https://discourse.processing.org/u/Teljemo)\
**Post date:** [November 24, 2019, 8:56am UTC](https://discourse.processing.org/t/can-i-read-data-from-another-softwares-database/15733/3 "2019-11-24T08:56:58Z")

</div>

Thank you 🙂  
I’ll have a chat with our IT staff and see if there is anything they can help out with.  
We recently created a service that show some data from the planning software in a separate window. So there must have been some kind of work done getting specific data out already so they might have a database for this. 🙂

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [November 25, 2019, 8:40pm UTC](https://discourse.processing.org/t/can-i-read-data-from-another-softwares-database/15733/4 "2019-11-25T20:40:26Z")

</div>

Another tool that might be of interest is DBManager for Processing

> **[vesolba/DBManager-for-Processing](https://github.com/vesolba/DBManager-for-Processing)**
>
> Java DB Manager for Processing. Contribute to vesolba/DBManager-for-Processing development by creating an account on GitHub.
