![]() |
VOOZH | about |
The CData JDBC Driver for SAP enables you to execute queries to SAP data in tools like Squirrel SQL Client. In this article, you will create a JDBC data source for SAP data and execute queries.
CData provides the easiest way to access and integrate live data from SAP. Customers use CData connectivity to:
While most users leverage our tools to replicate SAP data to databases or data warehouses, many also integrate live SAP data with analytics tools such as Tableau, Power BI, and Excel.
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:
The driver supports connecting to an SAP system using the SAP Java Connector (SAP JCo). Install the files (sapjco3.jar and sapjco3.dll) to the appropriate directory for the hosting application or platform. See the "Getting Started" chapter in the help documentation for information on using the SAP JCo files.
In addition, you can connect to an SAP system using Web services (SOAP). To use Web services, you must enable SOAP access to your SAP system and set the Client, RFCUrl, User, and Password properties, under the Authentication section.
For more information, see this guide on obtaining the connection properties needed to connect to any SAP system.
Below is a typical connection string:
jdbc:saperp:Host=sap.mydomain.com;User=EXT90033;Password=xxx;Client=800;System Number=09;ConnectionType=Classic;Location=C:/mysapschemafolder;π Connection properties automatically detected by Squirrel SQL. (Salesforce is shown.)
After the metadata has loaded, a new tab for the SAP 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 MANDT, MBRSH FROM MARAπ A query and the results. (Salesforce is shown.)
Download a free trial of the SAP ERP Driver to get started:
Download NowLearn more:
π SAP ERP IconStraightforward SAP ERP integration. Now accessing SAP RFC's from any JDBC client is as easy as querying a database.