Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

Write or insert Value from Geo Scada tag to SQL table

EcoStruxure Geo SCADA Expert Forum

Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Remote Operations
  • EcoStruxure Geo SCADA Expert Forum
  • Write or insert Value from Geo Scada tag to SQL table
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
sbeadle
Kirk sbeadle Kirk
307
AndrewScott
Admiral AndrewScott
95
BevanWeiss
Spock BevanWeiss
89
AdamWoodlandToo
Lt. Commander AdamWoodlandToo
36
View All
Related Products
product field
Schneider Electric
EcoStruxure™ Geo SCADA Expert

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to EcoStruxure Geo SCADA Expert Forum
helmihanibah
Crewman helmihanibah
Crewman

Posted: ‎2023-05-02 07:25 AM . Last Modified: ‎2023-05-02 11:44 PM

0 Likes
8
1476
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-05-02 07:25 AM . Last Modified: ‎2023-05-02 11:44 PM

Write or insert Value from Geo Scada tag to SQL table

Can anyone help to guide on how I can write or insert value to SQL table from Geo Scada analog tag using SQL query in Geo Scada?

I manage to do select and update statement but how do we insert the existing tag in geo Scada to SQL Table?
How do we define the tag in the query within the Geo Scada?

Attach the sample of Insert query.
Please let me know if I need to provide any additional information on this.

Appreciate anyone can help me on this.

Attachments
Labels
  • Labels:
  • SCADA
  • Scripting
  • Telemetry
  • ViewX
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic
Replies 8
AndrewScott
Admiral AndrewScott
Admiral

Posted: ‎2023-05-02 07:51 AM

0 Likes
0
1471
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-05-02 07:51 AM

The screenshot shows an ODBC Query database object. The "Query" property shown must be a SELECT as this defines the values which Geo SCADA gets from the external database and are then mapped onto the individual points associated with the query, see Configure the Query Properties in the help.

 

To update or insert into the external database you must enable controls on the ODBC Analog Point database object (on the "Query" tab of the form) and then enter the UPDATE or INSERT query in the "Query" property on this form, see Define the Query Properties and Use an SQL Query to Insert or Update Data in Another Database  in the help. This SQL is then executed when you control the point.


Andrew Scott, R&D Principal Technologist, AVEVA
Reply

Link copied. Please paste this link to share this article on your social media post.

helmihanibah
Crewman helmihanibah
Crewman

Posted: ‎2023-05-02 09:09 AM

0 Likes
2
1467
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-05-02 09:09 AM

Hello Andrew,

 

Thanks for the reply, still new to the Geo Scada and working on my Geo Scada project.
Previously I use Wonderware IDE or InTouch Scada, we can just define the tag in the script after create a tag in tag name dictionary.


So for Geo Scada we need to configure ODBC to link to SQL and I manage to work on select statement from test database and point to tag to display in trend.

 

Just to be clear, do we have anyway to point the Geo Scada tag by the tag path?
I already Configure ODBC and created the table in SQL.
The configuration is enabled with Min and Max.

 

The script that i use as below:
Working when static value and is updating the SQL table every 30 second.

Insert into Table
Values
('Text','Text','123','123','123')

 

Not Working if live analog tag reading value and the SQL table stop updating.

Insert into Table
Values
('Text','Text',Full Analog Geo Tag 1 Path,Full Analog Geo Tag 2 Path,Full Analog Geo Tag 3 Path)

 

so what you saying is that I can't direct point to the tag by the tag full path?

Do you have any example?

 

Thank you and Appreciate it.    

Reply

Link copied. Please paste this link to share this article on your social media post.

AndrewScott
Admiral AndrewScott
Admiral

Posted: ‎2023-05-02 10:35 AM

In response to helmihanibah
0 Likes
1
1461
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-05-02 10:35 AM

The UPDATE or INSERT in the control query is designed to take the value the user enters when issuing the control and write this to the external database (along with the current time) as shown in the example in the help (see Use an SQL Query to Insert or Update Data in Another Database). This is analogous to controlling an analog output point using a traditional protocol like DNP3, IEC 60870-5 or Modbus.

 

This feature (and the ODBC driver) isn't designed for exporting data from Geo SCADA to an external database.


Andrew Scott, R&D Principal Technologist, AVEVA
Reply

Link copied. Please paste this link to share this article on your social media post.

helmihanibah
Crewman helmihanibah
Crewman

Posted: ‎2023-05-02 11:10 AM

In response to AndrewScott
0 Likes
0
1459
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-05-02 11:10 AM

Okay understood, but is there any features or way in Geo Scada that can write or insert the Geo Scada live tag reading Value to the SQL Database directly?

Reply

Link copied. Please paste this link to share this article on your social media post.

sbeadle
Kirk sbeadle Kirk
Kirk

Posted: ‎2023-05-02 11:25 AM

0 Likes
0
1452
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-05-02 11:25 AM

That is what Andrew explained. But maybe your question needs to be more clear. What do you mean directly? ODBC/SQL are direct ways that Geo SCADA uses.

 

Can you try again to explain what you want to do? Perhaps include a diagram?

Reply

Link copied. Please paste this link to share this article on your social media post.

helmihanibah
Crewman helmihanibah
Crewman

Posted: ‎2023-05-02 07:30 PM

0 Likes
0
1433
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-05-02 07:30 PM

Sorry for my poor explanation, what I mean is can I use OPC data as below in my script directly.

 

OPC Data update.PNG

Reply

Link copied. Please paste this link to share this article on your social media post.

AndrewScott
Admiral AndrewScott
Admiral

Posted: ‎2023-05-03 01:58 AM

0 Likes
0
1399
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-05-03 01:58 AM

You ought to be able to do this using a combination of a linked ODBC table (see Linked ODBC Tables ) and a structured text program (see Inserting, Updating, and Deleting Values by Using SQL in an ST Program ) that reads the point values and then inserts the values into the linked table.

 

Alternatively, you could create a custom application which is an OPC DA client (to Geo SCADA) and a data access client (to the SQL server) which subscribes to the OPC DA items you're interested in and and then inserts the values into the SQL server. This will likely be more scalable than the first approach.


Andrew Scott, R&D Principal Technologist, AVEVA
Reply

Link copied. Please paste this link to share this article on your social media post.

sbeadle
Kirk sbeadle Kirk
Kirk

Posted: ‎2023-05-03 01:58 AM

0 Likes
0
1399
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-05-03 01:58 AM

The SCADA ODBC Driver points are like any protocol points such as Modbus or DNP3, except that the data source is an ODBC SQL query. The points are full SCADA points with alarm, value, historic and other data processing.

If you want to read a value from ODBC and put it on screen, this is a simple way to do it, but it will need a licensed point per data value.

Alternatives are to use a Linked ODBC table or use an external script to transfer the data into a Geo SCADA Data Grid or Data Table. But these will make the data available to SQL in script, mimics and Logic. They won't make it available to OPC tags.

 

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of