Issue
Product Line
TAC IA SeriesEnvironment
- I/A Series R2 system
- External SQL database
Cause
Resolution
Use the sqlUtility module, which includes an object called SqlData to perform SQL queries on any SQL database.
Important: The sqlUtility can only be used in an Enterprise Server, not in a UNC.
Steps:
- Create a SQL query that returns a single column from the target data table.
- Example query:
SELECT EnergyIntensity FROM EnergyTable ORDER BY O_Id DESC- This query retrieves the EnergyIntensity column from the EnergyTable, sorted by record number (O_Id) in descending order.
- The returned value will be the first element in the first column of the query results, ensuring the newest value is obtained.