I'm trying to get sampled data from PI with PIOLEDB through the next query
SELECT Time, Value FROM piarchive..piinterp2 WHERE tag = 'FFH:B_002' AND time BETWEEN 't' and '*' and the result its a numeric value not related the digital state of the tag (-2293772)
Some messages from this forum talk about using name, but if I use it, an error occurs: "Column name 'name' is invalid."
How can I obtain this data?
Regards, Emilio Sancha