Ready to get started?

Download a free trial of the Dynamics NAV Driver to get started:

 Download Now

Learn more:

Dynamics NAV Icon Dynamics NAV JDBC Driver

Rapidly create and deploy powerful Java applications that integrate with Dynamics NAV account data including Items, Sales Orders, Purchase Orders, and more!

Connect to Dynamics NAV Data in RazorSQL



Connect to Dynamics NAV from wizards and query Dynamics NAV data from the GUI in the RazorSQL database management tool.

The CData JDBC Driver for Dynamics NAV enables standards-based access from third-party tools, from wizards in IDEs to data management and analysis tools. This article shows how to connect to Dynamics NAV using wizards in RazorSQL.

Create a JDBC Data Source for Dynamics NAV Data

  1. Open the RazorSQL application and, in the Connections menu, select Add Connection Profile -> Other -> JDBC.
  2. In the Connection Wizard that appears, set the following properties:
    • Driver Location: Set this property to the path to the lib subfolder in the installation directory.
    • Driver Class: Set the driver class to cdata.jdbc.dynamicsnav.DynamicsNAVDriver.
    • Username: Enter the username. (This property can also be set in the JDBC URL.)
    • Password: Enter the password. (This property can also be set in the JDBC URL.)
    • JDBC URL: Enter connection parameters. The JDBC URL begins with jdbc:dynamicsnav: and is followed by a semicolon-separated list of connection properties.

      Before you can connect, OData Services will need to be enabled on the server. Once OData Services are enabled, you will be able to query any Services that are published on the server.

      The User and Password properties, under the Authentication section, must be set to valid Dynamics NAV user credentials. In addition, you will need to specify a URL to a valid Dynamics NAV server organization root and a ServerInstance. If there is not a Service Default Company for the server, you will need to set the Company as well.

      Built-in Connection String Designer

      For assistance in constructing the JDBC URL, use the connection string designer built into the Dynamics NAV JDBC Driver. Either double-click the JAR file or execute the jar file from the command-line.

      java -jar cdata.jdbc.dynamicsnav.jar

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

      A typical JDBC URL is the following:

      jdbc:dynamicsnav:http://myserver:7048;User=myserver\Administrator;Password=admin;ServerInstance=DYNAMICSNAV71;

Query Dynamics NAV Data and Select Tables

After establishing a connection, the wizard will close and the connection will be available in the connections panel. You can then query the tables.