Scada-LTS with MSSQL? #3071
Replies: 1 comment
-
Hi @fabiodurao, If you have clients and need support that requires a lot of time or implementation, we encourage business cooperation. Regards, |
Beta Was this translation helpful? Give feedback.
-
I would like to know if there is any possibility of integrating Scada-LTS with MSQQL, making it a native historian instead of MySQL.
Justification: Two clients placed the use of MSSQL as a condition for Scada-LTS to be approved, a client from Brazil and a multinational from Portugal.
So I decided to do something similar to what I do to create a new application with MySQL (when I want to have 2 Scada-LTS on the same server) within Tomcat, adapting it to MSQQL, and see if it would work.
I followed these steps:
1 - I installed SQL Server 2022 Express (MSSQL free version);
2 - I released the port and registered a password (for the "sa" user) and tested the connection using Dbeaver, and it worked;
3 - In Dbeaver, with this same user, I created a new DB;
4 - I stopped Tomcat;
5 - And in \tomcat\webapps I copied the Scada-LTS.war file and pasted it in the same folder and renamed it to Scada-LTS_MSSQL.war
6 - I started Tomcat so it would generate the Scada-LTS_MSSQL folder and after the start was finished, I stopped Tomcat again;
7 - I searched for some mssql .jar driver inside the Tomcat folder and didn't find it, so I downloaded the mssql-jdbc-12.8.1.jre11.jar version compatible with Java 11 and pasted it in the \tomcat\lib folder;
8 - I changed the content of the \tomcat\conf\context.xml file by adding a new with the following drive and credentials;
9 - I changed the env.properties file inside the new application folder pointing to the new ; 10 - I started Tomcat and looked in Dbeaver to see if any tables would be created - I saw that there was a file \WEB-INF\db\createTables-mssql.sql and I imagined that it would create the tables automatically, as happens with MySQL.
But in the end, the tables were not created and the application consequently did not go up, the other pre-existing applications worked normally.
Any help would be welcome.
Beta Was this translation helpful? Give feedback.
All reactions