SQL API architecture
The SQL API architecture demonstrates how the SQL API plugin integrates with the ServiceNow system to provide secure, read-only data access through industry-standard ODBC and JDBC drivers.
The SQL API architecture provides a high-level view of how external Business Intelligence (BI) tools and data analysis platforms connect to your ServiceNow instance through standard database APIs. The architecture provides secure, read-only access to your ServiceNow data while maintaining all security controls and access restrictions.
Architecture overview
The SQL API uses ServiceNow web services to provide a query-only interface. This architecture enables direct connections from ODBC and JDBC-compatible tools to your ServiceNow data without data export or replication.
The following diagram illustrates the high‑level architecture of how the SQL API connects external BI tools to ServiceNow tables via ODBC and JDBC drivers, while enforcing security and access controls.
Key architectural components
The SQL API architecture consists of the following key components:
- Client applications
- External BI tools and data analysis platforms such as Power BI, DBeaver, and DBvisualizer that connect using ODBC or JDBC protocols.
- ODBC/JDBC drivers
- Industry-standard database drivers that enable client applications to establish connections and execute SQL queries against ServiceNow data.
- ServiceNow Instance
-
Inside the ServiceNow instance, three layers handle the request:
How the architecture works
When you connect your BI tool to ServiceNow through the SQL API, the following process occurs:
- Your BI tool establishes a standard database connection using either ODBC or JDBC APIs.
- The connection request is authenticated against ServiceNow user credentials configured for SQL API access.
- Once authenticated, you can write SQL queries to retrieve data from authorized ServiceNow tables and fields.
- The SQL API processes your queries through the security services layer, applying all security controls and access restrictions.
- Query results are returned in standard tabular format, which your BI tool can visualize, analyze, or export.