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
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

PLC Program for Alarm Indication in Process Control
Wet Contacts and Dry Contacts in PLC Systems
Modbus Communication between PLC and Energy Meter
PLC Timer Instructions
Parking Garage Indicator: PLC Automation System
Schneider Electric PLC Timer Problem: Vacuum Cleaner
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

The Purpose of Marshalling Cabinet or Marshalling Panel
Download a Ladder logic program to GE PLC
Tools Required for PLC Programmer to Carry at Site
Difference Between Microcontroller and PLC
Siemens PLC Course for Beginners: Problems and Solutions
System Cabinet Health Checks – PLC and DCS Industrial Automation
Basic Concepts of the Safety Relay
Configuring and Usage of Cyclic Interrupts TIA Portal (OB 30+)

Keep Learning

Advantages of Redundant System

Redundant Automation Systems – Need and Advantages

Top 5 Advantages of Human-Machine Interface (HMI)

Top 5 Advantages of Human-Machine Interface (HMI)

Forward reverse motor control diagram with timer

Timer during Motor Direction Change PLC Program

DRUM DB

Siemens Drum block for Sequencer Operation

Smart Drip Irrigation System Using PLC

Scheduled Daily Plant Watering PLC Program

Face Mask Making Machine using PLC and HMI

Face Mask Making Machine using PLC and HMI

Redundant Power Supply

How Does Redundant Power Supply Work?

Modbus Poll and Modbus Slave

How to Use Modbus Poll and Modbus Slave Software?

Learn More

30 Concerns for Control System Philosophy (Industrial Automation)

30 Concerns for Process Control Systems Philosophy

Siemens SIMATIC S7 PLC GSD File

How to import GSD files into the TIA Portal? – Siemens PLC

Programmable Logic Controllers Multiple Choice Questions

Programmable Logic Controllers Multiple Choice Questions

Motor Control On-Delay Timers Circuit

Motor Control Timer Circuit – Automatic Motor START and STOP

pH and ORP eBook Download

pH and ORP Learning Handbook

Digital Electronics Multiple Choice Questions

Asynchronous Counter Objective Questions

Magnetic Level Gauge Float

Magnetic Level Gauge Float Design

WirelessHART Network Protocol

WirelessHART Network Protocol

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?