MS SQL Server Microsft SQL Server

Easy data exchange with Microsoft SQL Server

Microsoft SQL Server is one of the most common SQL servers in the industrial environment. In modern industry 4.0 production, databases form the heart of networked production. All relevant data for optimal production is stored here and made available to other systems.

With the OPC Router Plug-in for MS SQL Server you can easily connect to the SQL Server and access its tables, views and procedures (Example on the right). In combination with the other plug-ins, you can easily collect data from various systems in the SQL Server and distribute it back to the right system at the right time. For example, you allow the PLC (via OPC UA) to access the SQL server or very simply transfer data from SQL to SAP. The plug-in list gives you an overview of all coupling options.

Run a free test now

Example for a connection from SQL to OPC with Stored Procedure call:

Example for SQL database connection calling a stored procedure

That’s how easy it is.

Connecting Systems

What’s Transfer, Trigger and Browsing?

Transfer Objects

The transfer object MS SQL plug-in allows access to Tables, Views and Stored Procedures in the database.

Tables
The following actions are available for tables: Select, Update, Insert and Delete. After successful data processing, the OPC Router can mark (i.e. identify) the transferred data as such.

Views
Access Views exclusively via Select Query.

Stored Procedure

When accessing any stored procedure in the database, Execute is carried out by the OPC Router. During the process Input Parameter can be transmitted. It is also possible to read back retrieval information as well as return parameters (and also results).

Trigger

The MS SQL Plug-in has its database trigger.

Database Trigger

The database trigger monitors (i.e. checks) changes in Table columns. The OPC Router sends a change notification when a change occurs and then triggers a connection.
The database trigger does not have outgoing data fields.

Browsing

The MS SQL Plug-in can browse the available objects from the MS SQL Server.

Tables and Views
All tables and views the user has access to are readout from the MS SQL Server and then the columns and their types are distinguished and made available for user-specific selection.

Stored Procedures

The available stored procedures are also read out. Depending on the respective procedure, input and output parameters are read out together with the type information, and made available for selection. The obligational return value is automatically made available.

Database Plug-in Application Examples

Production Data Acquisition

With the OPC Router, you create the basis for your production data acquisition system. The various plug-ins allow you to load data from various systems and transfer it to the evaluating target system. Typical targets are MES systems (Manufacturing Execution System) or ERP systems (Enterprise Resource System (e.g. SAP)). Due to the simple configuration, a Microsoft SQL Server can be used as a central operating database and the systems with the data sources are connected graphically and without programming. Existing operational data collections can often be connected via an SQL Server connection and are supplied with data via this connection. A typical example of data collected for production data acquisition is control data from PLC systems. Controllers are connected via the standardized OPC UA protocols (with the OPC UA Client Plug-in).

MS SQL Server
OPC UA Client / OPC DA Client
MS SQL Server

Database application without programming

To exchange data between SQL Server and other systems only the OPC Routers graphical designer is needed. After the connection parameters of the database have been announced and tested, the database objects can be searched and selected. In the connections, the data transfers between an external system (SAP, MQTT, OPC, REST, etc.) and the SQL Server are established. Once the project has been published, all data transfers can be checked and viewed in the graphical monitoring system.

Here you will find further information
about OPC Router and Plug-ins.

Plug-ins
Run a free test now