I found the article (link below) but it is dated. I am looking to integrate relational data with PI in the same manner. I was wondering if there is a better method or an update to this code as suggested. I want to have a custom data reference that can give me the latest value (say every 5 seconds) and also can be called up from process book and show historical data just like any other AF attribute. The part I did not understand is how the connection information is stored and the sql statement. Are these configurable in AF or do I need a custom reference for every value I want to bring in. I thank you in advance for your help in this matter.