Configuring ServiceNow SQL API - JDBC Driver on Client Machine
Configure the JDBC driver settings on your client machine to establish a connection to your ServiceNow instance and access data through the SQL API.
Before you begin
Before you begin, ensure the following prerequisites are met:
- The SQL API plugin is installed and configured on your ServiceNow instance.
- You have downloaded the ServiceNow SQL API JDBC driver to your client machine.
- Java Runtime Environment (JDK 17 or later) is installed on your client machine.
- You have a valid Service Account with the sn_jdbc_rest_access role assigned.
- Your client machine's IP address is included in the SQL API IP filter criteria.
- You have the necessary connection parameters including your ServiceNow instance URL, Service Account credentials, and target database name.
Role required: admin
About this task
The JDBC driver configuration enables your BI tools and analytics platforms to connect to ServiceNow using standard database connection protocols. After configuring the JDBC driver, your applications can execute SQL queries against authorized ServiceNow tables through the SQL API.
The ServiceNow SQL API supports JDBC version 1.0 or later and requires Java Development Kit (JDK) 17 as the minimum supported Java runtime version.
Procedure
Result
After successfully configuring the JDBC driver, your BI tool or application can connect to ServiceNow and execute SQL queries against authorized tables. You can now query ServiceNow data directly without requiring data export or replication.
Remember that SQL API access is read-only and subject to your ServiceNow Access Control List (ACL) configuration. You can only query tables for which the Service Account has been granted egress_sql and read permissions.
The SQL API enforces a query rate limit of 500 queries per hour per Service Account.