# How to connect a PLC with a database (SQL)

**URL:** <https://forumautomation.com/t/how-to-connect-a-plc-with-a-database-sql/852>\
**Category:** Industrial Automation\
**Created:** [March 13, 2016, 12:10am UTC](https://forumautomation.com/t/how-to-connect-a-plc-with-a-database-sql/852 "2016-03-13T00:10:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![automate](https://forumautomation.com/letter_avatar_proxy/v4/letter/a/51bf81/32.png) [@automate](https://forumautomation.com/u/automate)\
**Post date:** [March 13, 2016, 12:10am UTC](https://forumautomation.com/t/how-to-connect-a-plc-with-a-database-sql/852/1 "2016-03-13T00:10:02Z")

</div>

SQL4Automation is one of the best solution to connect PLC with a database.

It connects PLC directly with SQL databases.

SQL4Automation uses ODBC server for connecting PLC with database. OPC server is not required .Security and performances increases due to this. No project specific configuration is required. Everything is programmed in the controller.

SQL4Automation can be downloaded from the following link

> **[SQL4AUTOMATION - Demo Version - Download - PLC S7 | SQL4Automation](http://www.sql4automation.com/en/license-models/download.php)**
>
> SQL4AUTOMATION - Demo Version - Download - SQL4AUTOMATION connects PLC and robot controllers safely, comfortably and easily with SQL databases. Download your demo version now!

Compatibility - 1.Rockwell Automation 2.CODESYS 3.Siemens S7 4.Rexroth 5.ABB 6.FESTO 7.WAGO

---

<div class="post-metadata">

**Author:** ![Igor\_Filanda](https://forumautomation.com/user_avatar/forumautomation.com/igor_filanda/32/4148_2.png) [@Igor\_Filanda](https://forumautomation.com/u/Igor_Filanda)\
**Post date:** [August 2, 2019, 1:35am UTC](https://forumautomation.com/t/how-to-connect-a-plc-with-a-database-sql/852/2 "2019-08-02T01:35:14Z")

</div>

This is solution for **direct**  **connection** between **Siemens PLC ↔ SQL Server**

**MS SQL Functionality for Siemens Simatic S7-1200 S7-1500 in TIA Portal V13 V14 V14**

[PDSql Library V1.2.0 for Siemens](https://plcdirectsql.com)

[PDSql Library V1.2.0 User Guide](https://plcdirectsql.com/en/support/pdsql-library-user-guide-pdf-download.php)
