Home : Products : Hach WIMS : Interfaces : Q14680 Move Data Utility
Q14680 - INFO: Q14680 Move Data Utility

Q14680 is a WIMS utility that transfers WIMS data to another database (data warehouse).  It is typically used to transfer multiple facility data values to a single database for rollup reporting etc...

A JDATA table must exist in the destination database:


 [FACILID] [nchar](10) NULL,
 [VARNUM] [numeric](18, 0) NULL,
 [LOCATION] [nvarchar](500) NULL,
 [NAME] [nchar](50) NULL,
 [VARTYPE] [nvarchar](1) NULL,
 [GLOBALUD1] [nchar](50) NULL,
 [DATESTAMP] [datetime] NULL,
 [CURVALUE] [float] NULL,
 [TEXTVALUE] [nvarchar](255) NULL,
 [UNITS] [nchar](20) NULL
) ON [PRIMARY]

The tool loops thru the WIMS Facility list as defined by Source Facility Query and runs the following query against the daily data table. 

SELECT 'OPSWWTUTOR' AS FACILID,VARNUM,PATH,NAME,VARTYPE, UNITS,GLOBALUD1,DATESTAMP,CURVALUE,TEXTVALUE
FROM DATATBL,VARDESC LEFT OUTER JOIN LOCATION ON VARDESC.LOCID=LOCATION.LOCID 
WHERE DATATBL.VARID=VARDESC.VARID AND DATESTAMP >= '2021-09-01' AND DATESTAMP <= '2021-09-07'
ORDER BY VARNUM, DATESTAMP

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.
Created on 9/23/2021 8:19 AM.
Last Modified on 9/23/2021 8:19 AM.
Last Modified by Scott Dorner.
Article has been viewed 1450 times.
Rated 0 out of 10 based on 0 votes.
Print Article
Email Article