Periodic copying, synchronizing, forwarding and merging of SQL database tables with MSSQL Express?
0
votes
0
answers
24
views
There is a modification project in our Process Plant related to SCADA application (Process Automation System) and I am looking for reliable advice/ suggestions from experienced members related to SQL Database Management.
**Background:** We have multiple Workstations each running Stand-alone SCADA application with SQL Express for writing Real-time Alarms to SQL DB and occasional reading. We need to forward these Alarms SQL DB (Table only) from all Workstations to Centralized Station, merge all Alarm Tables into one, and then import to SQL Express DB on Centralized Station for Read-Only Purpose. These tasks need to be automated and triggered at appropriate frequency (for eg. every 1 Hour).
Please note that all Workstations are Workgroups and Stand-alone.
Please also note that communication between Workstations and Centralized Station is strictly uni-directional i.e. Workstation -> Centralized Workstation (so no option for SQL Server Replication).
***
### My Rough Plan
#### On Each Workstation:
1. Duplicate the Production_DB to Offline_DB (in same SQL Server Instance)
2. Synchronous/Asynchronous update of Alarms Table from Production_DB to Offline_DB.
3. Periodic Conversion of the Alarms Table from Offline_DB to CSV.
4. Forwarding the CSV to Centralized Workstation.
#### On Centralized Workstation:
5. Creating Workstation_DB for each Workstation in SQL Server instance.
6. Converting and importing CSV file in each Workstation_DB to Alarms Table.
7. Creating one Central_DB and merging all Workstations Alarms Table to one Table.
8. Assign Central_DB to SCADA Application on Central Workstation.
Please advise if the rough plan needs correction or optimization.
I have no background knowledge of SQL scripting and I would be grateful if someone also guide me through the execution of each step in SQL (excluding step 4 and step 8).
Asked by Hmbl3Lrnr
(1 rep)
Feb 18, 2025, 08:31 AM
Last activity: Feb 18, 2025, 08:33 AM
Last activity: Feb 18, 2025, 08:33 AM