OPCQUALITY returning only a zero value

Applies to: Proficy Historian data.

When you use the OPCQUALITY column (from the hTags table) in an SQL statement, the returned value will always be zero unless you include the following WHERE clause in your query:

"WHERE SAMPLINGMODE = rawbytime"