OSIsoft provides several SQL-based tools for programmatically accessing the PI System – PI OLEDB, PI ODBC, and most recently, PI JDBC. This presentation will focus on the latest efforts in PI OLEDB Provider with AF support, and the new PI JDBC Driver for Windows and Linux. We will demonstrate how to explore AF and test queries using PI SQL Commander, search for AF Elements and Attributes using PI OLEDB, and access PI System data from Java applications using PI JDBC. We will also discuss the roadmap for SQL-based data access to the PI System.