New Community Ranking System
Our Community ranking system has recently been updated. You may notice changes in user rankings and receive system messages or notifications. If you have questions about how the new ranking works, please refer to the announcement post for more details (click here).
Automation Interface - Simple SQL Query
Ask the Community
Ask questions, get advice from experts and peers on Digital Automation & Energy Management.
Search in
Improve your search experience:
Exact phrase→Use quotes " "(e.g., "error 404")
Wildcard→Use * for partial words(e.g., build*, *tion)
AND / OR→Combine keywords(e.g., login AND error, login OR sign‑in)
Keep it short→Use 2–3 relevant words, not full sentences
Filters→Narrow results by section(Knowledge Base, Users, Products)
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 InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-06-1304:43 PM
Automation Interface - Simple SQL Query
Hi all,
I have been using a reference to the automation interface from Excel to connect to a GeoSCADA 2020 database and manipulate various objects. I have been able to delete and rename objects and change the properties of various objects as well. All good!
However, I would like to be able to execute an SQL query from the same environment (Microsoft Excel and VBA) and iterate through the results to perform various actions. Is this possible (preferably not via ODBC) and can you provide me with a simple example please?
I know that you can get all objects of the same class {eg: Dim Objs As ScxV6DbClient.ScxV6Objects Set Objs = svr.Objects("CPointAlgManual"} but that doesn’t let you create a result set from an SQL statement.