on ‎2008 Jun 02 7:47 AM
Hi all,
I need to write complex select statements on Tag database.
Can anyone please let me know how and where in query template to write.
Thanks
Ravi Kumar.
Request clarification before answering.
What is your Tag source system? Many of the mainstream historians support SQL statements, typically using a specialized syntax, but you will have to create a SQL based connection to the historian. If you are able to setup an SQL based connection, then the FixedQuery will be your place for custom tag requests.
Regards,
Jeremy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jeremy,
That's what I am looking for. I am willing to write a SQL statement on tag database. I tried using UDC connector for creating the connection, but I found it's impossible to write statements there.
I am using PI System. Can you suggest which type of connector do I need to use for accomplishing that.
Regards,
Ravi kumar.
Once setting up the UDS connection as above, you'll need to connect your datasource to the exposed port of the UDS using a "OLEDB Connector", port must match that of the SAP UDS.
from there you can simply drop a PI tag query into the query template to extract data.
SELECT "tag", "time", "_index", "value", "status", "questionable", "substituted", "annotated", "annotations" FROM "piarchive".."picomp2" WHERE tag = 'sinusoid' AND time BETWEEN '-1h' AND ''
Once setting up the UDS connection as above, you'll need to connect your datasource to the exposed port of the UDS using a "OLEDB Connector", port must match that of the SAP UDS.
from there you can simply drop a PI tag query into the query template to extract data.
SELECT "tag", "time", "_index", "value", "status", "questionable", "substituted", "annotated", "annotations" FROM "piarchive".."picomp2" WHERE tag = 'sinusoid' AND time BETWEEN '-1h' AND ''
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jeremy,Jason
After installing PI OLEDB Provider,OLEDB UDS Connector on xMII Server and doing a set of configurations in Admin Console and Data servers, I am able to connect to PI Data Base and I am able to write SQL as we do on any other Relational Data base.
Thanks for your invaluable information.
Regards,
Ravi kumar.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.