![]() |
VOOZH | about |
The CData JDBC Driver for QuickBooks Online enables you to execute queries to QuickBooks Online data in tools like Squirrel SQL Client. In this article, you will create a JDBC data source for QuickBooks Online data and execute queries.
CData provides the easiest way to access and integrate live data from QuickBooks Online. Customers use CData connectivity to:
Many users access live QuickBooks Online data from preferred analytics tools like Power BI and Excel, directly from databases with federated access, and use CData solutions to easily integrate QuickBooks Online data with automated workflows for business-to-business communications.
For more information on how customers are solving problems with CData's QuickBooks Online solutions, refer to our blog: https://www.cdata.com/blog/360-view-of-your-customers.
Follow the steps below to add the driver JAR.
Follow the steps below to save connection properties in the driver alias.
In the Add Alias wizard that opens, the following fields are required for the JDBC driver:
QuickBooks Online uses the OAuth authentication standard. OAuth requires the authenticating user to log in through the browser. To authenticate using OAuth, you can use the embedded OAuthClientId, OAuthClientSecret, and CallbackURL or you can obtain your own by registering an app with Intuit. Additionally, if you want to connect to sandbox data, set UseSandbox to true.
See the Getting Started chapter of the help documentation for a guide to using OAuth.
Below is a typical connection string:
jdbc:quickbooksonline:InitiateOAuth=GETANDREFRESH;π Connection properties automatically detected by Squirrel SQL. (Salesforce is shown.)
After the metadata has loaded, a new tab for the QuickBooks Online data source is displayed. On the Objects subtab, you can discover schema information, such as the available tables and views.
π Column metadata for a table. (Salesforce is shown.)
To view table data, select the table on the Objects tab. The table data is then loaded in a grid on the Content tab.
π Tables can be edited on the Content tab. (Salesforce is shown.)To execute an SQL query, enter the query on the SQL tab and then click Run SQL (the runner icon). For example:
SELECT DisplayName, Balance FROM Customersπ A query and the results. (Salesforce is shown.)
Download a free trial of the QuickBooks Online Driver to get started:
Download NowLearn more:
π QuickBooks Online IconComplete read-write access to QuickBooks Online enables developers to search (Customers, Transactions, Invoices, Sales Receipts, etc.), update items, edit customers, and more, from any Java/J2EE application.