Ready to get started?

Download a free trial of the Sage 300 Driver to get started:

 Download Now

Learn more:

Sage 300 Icon Sage 300 JDBC Driver

Rapidly create and deploy powerful Java applications that integrate with Sage 300.

Connect to Sage 300 Data in as an External Source in Dremio



Use the CData JDBC Driver to connect to Sage 300 as an External Source in Dremio.

The CData JDBC Driver for Sage 300 implements JDBC Standards and allows various applications, including Dremio, to work with live Sage 300 data. Dremio is a data lakehouse platform designed to empower self-service, interactive analytics on the data lake. With the CData JDBC Driver, you can include live Sage 300 data as a part of your enterprise data lake. This article describes how to connect to Sage 300 data from Dremio as an External Source.

The CData JDBC Driver enables high-speed access to live Sage 300 data in Dremio. Once you install the driver, authenticate with Sage 300 and gain immediate access to Sage 300 data within your data lake. By surfacing Sage 300 data using native data types and handling complex filters, aggregations, & other operations automatically, the CData JDBC Driver grants seamless access to Sage 300 data.

Build the ARP Connector

To use the CData JDBC Driver in Dremio, you need to build an Advanced Relation Pushdown (ARP) Connector. You can view the source code for the Connector on GitHub or download the ZIP file (GitHub.com) directly. Once you copy or extract the files, run the following command from the root directory of the connector (the directory containing the pom.xml file) to build the connector.

mvn clean install

Once the JAR file for the connector is built (in the target directory), you are ready to copy the ARP connector and JDBC Driver to your Dremio instance.

Installing the Connector and JDBC Driver

Install the ARP Connector to %DREMIO_HOME%/jars/ and the JDBC Driver for Sage 300 to %DREMIO_HOME%/jars/3rdparty. You can use commands similar to the following:

ARP Connector

docker cp PATH\TO\dremio-sage300-plugin-20.0.0.jar dremio_image_name:/opt/dremio/jars/

JDBC Driver for Sage 300

docker cp PATH\TO\cdata.jdbc.sage300.jar dremio_image_name:/opt/dremio/jars/3rdparty/

Connecting to Sage 300

Sage 300 will now appear as an External Source option in Dremio. The ARP Connector built uses a JDBC URL to connect to Sage 300 data. The JDBC Driver has a built-in connection string designer that you can use (see below).

Built-in Connection String Designer

For assistance in constructing the JDBC URL, use the connection string designer built into the Sage 300 JDBC Driver. Double-click the JAR file or execute the jar file from the command line.

java -jar cdata.jdbc.sage300.jar

Fill in the connection properties and copy the connection string to the clipboard.

Sage 300 requires some initial setup in order to communicate over the Sage 300 Web API.

  • Set up the security groups for the Sage 300 user. Give the Sage 300 user access to the option under Security Groups (per each module required).
  • Edit both web.config files in the /Online/Web and /Online/WebApi folders; change the key AllowWebApiAccessForAdmin to true. Restart the webAPI app-pool for the settings to take.
  • Once the user access is configured, click https://server/Sage300WebApi/ to ensure access to the web API.

Authenticate to Sage 300 using Basic authentication.

Connect Using Basic Authentication

You must provide values for the following properties to successfully authenticate to Sage 300. Note that the provider reuses the session opened by Sage 300 using cookies. This means that your credentials are used only on the first request to open the session. After that, cookies returned from Sage 300 are used for authentication.

  • Url: Set this to the url of the server hosting Sage 300. Construct a URL for the Sage 300 Web API as follows: {protocol}://{host-application-path}/v{version}/{tenant}/ For example, http://localhost/Sage300WebApi/v1.0/-/.
  • User: Set this to the username of your account.
  • Password: Set this to the password of your account.

NOTE: To use the JDBC Driver in Dremio, you will need a license (full or trial) and a Runtime Key (RTK). For more information on obtaining this license (or a trial), contact our sales team.

Add the Runtime Key (RTK) to the JDBC URL. You will end up with a JDBC URL similar to the following:

jdbc:sage300:RTK=5246...;User=SAMPLE;Password=password;URL=http://127.0.0.1/Sage300WebApi/v1/-/;Company=SAMINC;

Access Sage 300 as an External Source

To add Sage 300 as an External Source, click to add a new source and select Sage300. Copy the JDBC URL and paste it into the New Sage300 Source wizard.

Save the connection and you are ready to query live Sage 300 data in Dremio, easily incorporating Sage 300 data into your data lake.

More Information & Free Trial

Using the CData JDBC Driver for Sage 300 in Dremio, you can incorporate live Sage 300 data into your data lake. Check out our CData JDBC Driver for Sage 300 page for more information about connecting to Sage 300. Download a free, 30 day trial of the CData JDBC Driver for Sage 300 and get started today.