Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: How to Use an SQL Server with Indusoft Web Studio?
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > How to Use an SQL Server with Indusoft Web Studio?

How to Use an SQL Server with Indusoft Web Studio?

We will learn how to use an SQL server with Indusoft Web Studio. Our focus will be only on data dumping in the server from the SCADA software.

Last updated: May 24, 2023 3:54 pm
Viral Nagda
PLC Tutorials
1 Comment
Share
6 Min Read
SHARE

When you are working with SCADA software, there is always a need to use some server like SQL, or Oracle with it. This is because, SCADA is used for larger systems in automation, and you need to handle large amounts of data backup daily. So, the servers play an important role in data management with SCADA software.

Various types of SCADA software are available in the market, but in this post, we will learn the concept with Indusoft Web Studio.

SQL Server with Indusoft Web Studio

We will learn how to use an SQL server with Indusoft Web Studio. Our focus will be only on data dumping in the server. Let us see the process step by step:

First, you need to link the SQL backup with the SCADA software. There are two places where you need to link the backup. The first place is shown in the first image and the second place is shown in the second image.

How to Use an SQL Server with Indusoft Web Studio?

In the first image, after you have entered the correct details, click the Test Connection button to test whether your backup has been linked with the SQL server or not.

In the second image, you need to do the same process of entering proper details of SQL data, which you need to check whether SCADA has been linked with SQL or not.

Using MySQL - InduSoft Web Studio

Then, you need to create database tables in the SCADA software, by right-clicking the database option and clicking insert.

A table is a tool where you will insert the columns required to be shown in the SQL server. Whatever columns you configure here, you need to insert the same name in the SQL server table.

Refer to the below image for understanding. In the description, you need to add the table name; in connection, you need to add the connection name; in the table name, you need to add the same name which you will give in the SQL table; and in the insert tag, you have to add a tag which will trigger the table.

create database table in SCADA software

Data is dumped into the SQL server when this table is triggered; so you need to trigger the trigger tag every time you want to throw data. Once this basic setting has been done, you need to link tag names and the column names as shown in the figure.

Tag-name refers to the tag which is present in SCADA and its value needs to be dumped in the column corresponding to it. So, as per the below example, apart from local date and time, Sensor1_Pv will be dumped in the Sensor1_Pv column of SQL and Sensor2_Pv will be dumped in the Sensor2_Pv column of SQL.

Next, you need to trigger the tag which will in short trigger the whole table created by you. Refer to the below image for understanding.

Indusoft Web Studio Tutorials

In the scheduler tab, for example, I have triggered this tag every minute. This tag will toggle between 0 and 1 every minute; thus triggering the table. When the table is triggered, the last values of the tag are written in the SQL table.

Next, you need to create the table in the SQL server. Create a table with the same name – Auto Mode and create the columns with the same name as done in the SCADA backup. Refer to the figure below.

SQL server with SCADA Software

Once the table has been created, you can now run the SCADA backup and check whether the values are dumping in the SQL server or not.

When the value is triggered from your SCADA backup, at the same time, values must be reflected at the same time in the SQL server. Every time your value shows reflection correctly in the SQL server at every trigger, this means your table is properly linked with SQL now.

Do remember that the table name and column name must be the same on both the SCADA and SQL, otherwise, any change in name or any missing character will not show the value in SQL.

If you liked this article, then please subscribe to our YouTube Channel for Instrumentation, Electrical, PLC, and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

  • Overview of SIEMENS PLC
  • HMI and VFD Control System
  • Sequential PLC Pneumatic Valves
  • HMI Screen Design for Hazardous
  • S7-1200 Hardware Configuration
Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Continue Reading

Door Locking System – PLC Applications Examples
Studio 5000: Programming Three Motors with Fixed Priorities
PLC Program to Read Temperature in PLC
Auto and Manual Liquid Tank System: PLC Program Example
Which Connection is Best for PLC? – Sinking or Sourcing
What is Interposing Relay in a PLC System ?
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
1 Comment
  • Anaya says:
    August 19, 2023 at 12:09 am

    I have been trying this steps but always get the same error: “SQL Server does not exists or acces denied”.

    Can you tell me the syntax to enter the server name?

    Im using MySQL Server 8.1.0 running on a windows server.

    Thanks in advance!

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

Alarm Acknowledge using PLC
What is a Retro-Reflective Sensor? – Principle, Applications
D Flip Flop PLC Ladder Logic
Design Document for Project Systems Architecture
Communication between InTouch Scada and Allen Bradley PLC
PLC Timers Program
If Else Statement in SCL Language
PLC FBD Programming for Burglar Alarm Security System

Keep Learning

SCADA backup too has been configured

FactoryTalk Studio and SQL Server for Data Logging

Leave Operational Logic in the PLC

#3 PLC Best Practices – Leave Operational Logic in the PLC wherever feasible

Introduction to PLC

#9 PLC Best Practices – Validate indirections

Connection between PLC and Contactor

Contactor – Basics, Wiring, Connection with PLC

Electrical Drives Animation

Electrical Drives – Modes, Types, Speed Control Applications

PLC Totalizer

PLC Program for Flow Totalizer

PLC program to control pump

Troubleshooting PLC Permissive Inputs

DC Circuit

Main differences between Sinking and Sourcing Circuits

Learn More

SCR Full Bridge Converter

Power Electronics – Full-wave Rectifier With R and RL Load

Motor Control Center Purpose

Motor Control Center – Purpose, Classification, and Advantages

Power Electronics Objective Questions

Single Phase Semi-Converter Multiple Choice Questions

multi-variable transmitter

Mass Flow Meters

PLC PID tuning parameters

Programming and Tuning PID Controller in PLC – Siemens TIA Portal

Siemens PLC Device and Network

Difference Between PLCSIM and PLCSIM Advanced? – Siemens PLC

pcb slip rings

Slip Rings in Robotics – Types, Applications, Advantages

Ion Spectrometers Questions & Answers

Electron Spectroscopy for Chemical Analysis

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?