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

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

How to access the Citect Scada database?

Remote Operations Forum

Support forum for Schneider Electric SCADA systems, radios and RTUs. From commissioning integration devices and software, to enhancing existing installations or troubleshooting.​

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
  • Remote Operations Forum
  • How to access the Citect Scada database?
Options
  • 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
Joel_Weder
Captain Joel_Weder Captain
76
BevanWeiss
Spock BevanWeiss
20
sbeadle
Kirk sbeadle Kirk
17
MartinChartrand
Captain MartinChartrand Captain
15
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to Remote Operations Forum
Mehak
Lieutenant Mehak
Lieutenant

Posted: ‎2022-02-15 09:50 PM

0 Likes
10
8781
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: ‎2022-02-15 09:50 PM

How to access the Citect Scada database?

Hello Everyone,

I want to ask how can I access the Citect SCADA database or How can I connect with SQL Server? I tried to connect but it didn't work for me. Kindly someone guides me?

Thank you

Labels
  • Labels:
  • SCADA
  • 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 10
MartinChartrand
Captain MartinChartrand Captain
Captain

Posted: ‎2022-02-16 04:53 AM . Last Modified: ‎2022-10-19 01:06 AM

0 Likes
0
8763
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: ‎2022-02-16 04:53 AM . Last Modified: ‎2022-10-19 01:06 AM

Hi @Mehak ,

 

Citect SCADA is not one of the products typically used by strict members of the Remote Operations (formerly SCADA & Telemetry) community so you might not get much help here. I would recommend contacting their support group directly.

 

There's also a Knowledge Base that contains Citect articles on Exchange that might have an answer for you:

https://community.se.com/t5/Industrial-Automation-Knowledge/tkb-p/industrial-automation-external-kb

 

However, you might also get lucky with one of experienced members here!

Regards,

 

Martin Chartrand

 

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

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-02-16 06:03 PM

0 Likes
8
8747
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: ‎2022-02-16 06:03 PM

You're going to have to provide FAR more information if you want any meaningful help.

 

What version of Citect SCADA do you have?

What methods have you actually tried to connect to it?

 

What made you think that this was an option at all?

I mean, I'd never think to try to connect SQL Server with my cat.. since my cat has never advertised any kind of SQL interface.


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
  • 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.

Mehak
Lieutenant Mehak
Lieutenant

Posted: ‎2022-02-16 08:31 PM

In response to BevanWeiss
0 Likes
7
8743
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: ‎2022-02-16 08:31 PM

Hi @BevanWeiss,

I am using Vijeo Citect version 7.40. I am working on reports as customers demand whenever they want to generate the report, just press the button and generate the report with previous data. That's why I need to connect it with an SQL server to store my data in the database. 

Thank you

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

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-02-17 03:59 AM

In response to Mehak
0 Likes
6
8737
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: ‎2022-02-17 03:59 AM

Citect reports

https://www.youtube.com/watch?v=1ZAWxu9AuvY

 

Citect cicode SQL functions (for Citect to connect to an SQL server)

https://johnwiltshire.com/citect-help/Subsystems/CicodeReferenceCitectHTML/Content/SQL_Functions.htm...

 

You should use Citect reports.

Otherwise you'll need to find a way to either push data into your SQL server from Citect using the SQL functions I've linked you to, or to use Citect as an OPC server connected to Kepware Datalogger to write the data to an SQL database.


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
  • 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.

Mehak
Lieutenant Mehak
Lieutenant

Posted: ‎2022-02-18 03:30 AM

In response to BevanWeiss
0 Likes
5
8730
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: ‎2022-02-18 03:30 AM

Hi @BevanWeiss I do as you say to connect it with SQL using the following code

FUNCTION DATA_LOCK()


INT hsql;
INT hexec,i;
STRING Time_1;
STRING Date_1;
STRING Time_DATE;
STRING svar1,sVAR2,sVAR3,sVAR4,sVAR5;




hsql=SQLConnect("dsn=DATA_DB_REPORT")
Date_1=Date(2);
Time_1=Date(10);
Time_Date=Date_1+Time_1;



SQLSet(hsql,"INSERT INTO REPORT_TABLE(DateTime,Data1,Data2,Data3,Data4) VALUES('");

SQLAppend(hsql,Time_1+"','");
SQLAppend(hsql,RealToStr (one,12,2)+"','");
SQLAppend(hsql,RealToStr (two,12,2)+"','");
SQLAppend(hsql,RealToStr (three,12,2)+"','");
SQLAppend(hsql,RealToStr (four,12,2)+"')");
//SQLAppend(hsql,RealToStr (FF_LINE_1,12,2)+"','");


SQLExec(hsql,"");

SQLDisconnect(hsql);
END

 

But it is not logging the data into SQL as the connection is successfully established.

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

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-02-20 02:22 PM

In response to Mehak
0 Likes
4
8710
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: ‎2022-02-20 02:22 PM

Your code makes no sense:

SQLAppend(hsql,RealToStr (one,12,2)+"','");

 

'one' is not a valid REAL.

 

You haven't mentioned when you call this Cicode function, you haven't mentioned what the DATA_DB_REPORT dsn connects to or provided any evidence that any part of this was correct.

 

You should provide a screenshot of the query string as reported by Citect immediately before it's calling SQLExec.

You should also show the exact same thing from a 3rd party ODBC client when connecting using exactly the same DSN and when executing exactly the same SQL query that you have from your Citect (i.e. exactly the same string shown in the screenshot).


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
  • 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.

Mehak
Lieutenant Mehak
Lieutenant

Posted: ‎2022-02-20 10:12 PM

In response to BevanWeiss
0 Likes
3
8704
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: ‎2022-02-20 10:12 PM

Hello @BevanWeiss,I am new to Citect SCADA Cicode. SQLAppend(hsql,RealToStr (one,12,2)+"','"); In this expression One is local variable that I defined and give datatype Real. I called the Cicode function in the button that I made in the graphic builder window. Below are the screenshots which show my ODBC connection is successfully established.

 sql connection.PNGodbc connection.PNGodbc connection_1.PNGodbc_connection_2.PNG

odbc connection_3.PNG

 

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

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-02-21 09:09 PM

In response to Mehak
0 Likes
2
8692
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: ‎2022-02-21 09:09 PM

You haven't provided the query string as printed from the Cicode, nor a 3rd party ODBC client successfully executing that same query string from the Citect machine.


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
  • 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.

Mehak
Lieutenant Mehak
Lieutenant

Posted: ‎2022-02-21 09:45 PM . Last Modified: ‎2022-02-21 09:47 PM

In response to BevanWeiss
0 Likes
1
8687
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: ‎2022-02-21 09:45 PM . Last Modified: ‎2022-02-21 09:47 PM

This is the query I passed in SQL.

sql_query.PNG

3rd party ODBC client successfully executing that same query string from the Citect machine. I cannot understand this. Can you explain more?

 

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

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-02-22 02:09 PM

In response to Mehak
0 Likes
0
8677
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: ‎2022-02-22 02:09 PM

  1. Using SQL Management Studio is NOT a 3rd party ODBC client.  It's not even using ODBC.
  2. That is not the same query as you have shown you're trying to use in Citect.
  3. You have not shown the query string immediately before calling SqlExec in your Cicode (i.e. via message box or similar).

 

Perhaps you should engage an experienced contractor to perform this work for you.


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
  • 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.

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