Download Salesforce JDBC Driver

What Is a JDBC Driver?

A JDBC driver is a Java library file (.jar) that enables Java applications — including DbSchema — to communicate with a database over a standard API. The driver translates generic JDBC calls into the network protocol understood by Salesforce, so you never have to write low-level socket code. Drivers are typically distributed by the database vendor or as open-source projects.

Understanding the JDBC URL

Every JDBC driver identifies the target database through a connection URL. The URL encodes the hostname, port, database name, and any driver-specific parameters as a single string. The exact syntax varies per driver — the details for Salesforce are listed in the section below.

Download the Salesforce JDBC Driver

Salesforce is the world's leading CRM platform, storing customer, lead, opportunity, and support data in its cloud database (Salesforce Objects). The JDBC driver exposes Salesforce objects as SQL tables, enabling standard SQL tools to query and report on CRM data.

Salesforce JDBC Driver Details

  • Required File(s): dbschema-salesforce-jdbc-xxx.jar
  • Java Driver Class: com.dbschema.salesforce.SalesforceJdbcDriver
  • URL:
    • jdbc:dbschema:salesforce://
    • jdbc:dbschema:salesforce://tables=all
    • jdbc:dbschema:salesforce://sessionid=PARAM
    • jdbc:dbschema:salesforce://sessionid=PARAM&tables=all
    • jdbc:dbschema:salesforce://user=...&password=...
  • Website: GitHub Salesforce Open Source JDBC Driver

Download Salesforce JDBC Driver

The driver archive is a zip file. Extract it and load the .jar files using DbSchema's Driver Manager.

The DbSchema Salesforce JDBC Driver is Open Source

The driver is built by the DbSchema team and is free and open source. The driver source code can be found on GitHub.

Visit GitHub Driver Source Code

How To Create a Salesforce Database

Salesforce database is a cloud hosted database. You can register for a free trial account at https://login.salesforce.com/. There you have to go on 'View Profile Settings' on top right and follow the link on the left to 'Reset Security Token'. You will receive a security token per email. When logging in using DbSchema enter in the password field the regular web login password concatenated with the security token. More details in DbSchema help.

DbSchema and Salesforce

DbSchema connects to Salesforce using the open-source JDBC driver and renders Salesforce standard and custom objects as tables in the schema diagram. Use the Query Builder to compose SOQL-equivalent SELECT queries against Salesforce records.

Have connection issues? Contact the DbSchema team for help.

DbSchema Database Designer

Explore Salesforce Visually with DbSchema

Once the JDBC driver is configured, DbSchema connects to your Salesforce database and gives you a full graphical workbench — no command-line required. Available as a free Community Edition and a full-featured PRO Edition. No registration needed to get started.

Interactive ER Diagrams

Reverse-engineer your Salesforce schema into a drag-and-drop ER diagram. Arrange tables visually, add new columns, define foreign keys, and let DbSchema generate the DDL — all without writing SQL by hand.

Interactive ER diagram for Salesforce in DbSchema

Visual Query Builder

Compose Salesforce queries by clicking on tables and columns — no SQL knowledge required. Add joins, filters, groupings, and aggregations through a point-and-click interface, then copy the generated SQL or run it directly against the live database.

Visual query builder for Salesforce in DbSchema

Relational Data Explorer

Browse Salesforce table data and follow foreign key relationships across tables in a single view. Edit cells inline, filter rows, and paginate through large datasets — all without leaving the explorer.

Relational data explorer for Salesforce in DbSchema

Schema Synchronization

Compare your Salesforce schema across development, staging, and production environments. DbSchema generates the exact ALTER statements needed to close the gap and lets you review every change before executing — reducing the risk of unintended schema drift.

Schema synchronization for Salesforce in DbSchema

SQL Editor

Write and execute Salesforce queries in the integrated SQL editor with schema-aware autocomplete, syntax highlighting, and instant result display. Run scripts, inspect execution plans, and export results to CSV or JSON from a single interface.

SQL editor for Salesforce in DbSchema

HTML Schema Documentation

Generate a static HTML site documenting every table, column, type, index, and relationship in your Salesforce schema. Share it with your team or embed it in your project wiki — no extra tooling required.

Schema documentation generator for Salesforce in DbSchema

For the full feature list and edition comparison, visit the DbSchema PRO Edition page.

Go deeper with Salesforce in DbSchema — ER diagrams, Git-based versioning, random data generator, and HTML schema docs. See the full Salesforce guide →