Included in ODBC PowerPack

ODBC Salesforce Driver

Query and write Salesforce objects with SOQL-friendly SQL over ODBC.

Query Salesforce objects with SQL and SOQL relationship syntax. Insert, update, upsert and delete records, use the Bulk API for large loads, and work with Salesforce data in SQL Server (T-SQL) or your BI, ETL and reporting tools.

Included in the Professional edition and above

ZappySys ODBC Driver - Create SalesForce Driver
Driver UI, SQL query and live preview

Trusted by data teams worldwide

MicrosoftIBMOracleDell TechnologiesHPCiscoAT&TVerizonDHLFedExUPSWalmart

Also rated on Capterra★★★★★ , Trustpilot★★★★★ and BBBA+ — see why teams trust ZappySys

At a glance

What the Salesforce Driver can do

Query and write Salesforce objects with SOQL-friendly SQL over ODBC.

Objects as tables

Query Salesforce objects with SQL and SOQL relationship syntax, including parent-to-child subqueries.

  • SOQL-style SELECT
  • Relationship queries
  • Aggregates and GROUP BY

See the SQL example

Read and write

Run INSERT, UPDATE and DELETE statements and use the Bulk API for large loads.

  • DML statements
  • Bulk API option
  • Upsert by external Id

See the SQL example

Familiar SQL

Use WHERE, ORDER BY, GROUP BY and built-in math, string, date and JSON functions on top of the data source.

  • Standard SELECT syntax
  • Custom functions in the SQL dialect
  • Driver options in a WITH clause

Query examples

Works with the tools you have

Any ODBC-compliant tool can use the DSN: Power BI, Tableau, Qlik, SSRS, Informatica, Excel and SSIS.

  • Create a DSN once, reuse it everywhere
  • 32-bit and 64-bit ODBC
  • Stored in the standard ODBC Data Source Administrator

Setup guide

Use it from code

Connect from Java, C#, Python, PowerShell and more with an ODBC connection string that names the DSN.

  • Standard ODBC connection strings
  • Parameterized queries
  • Same SQL as in the UI

Python example

SQL Server via Data Gateway

Query the driver from SQL Server (linked server / OPENQUERY) without installing it on the SQL Server machine, through the Data Gateway.

  • No driver install on the server
  • Works with SQL Server 2012 through 2025 (32/64 bit)
  • Same DSN, same SQL

About Data Gateway

See all features
  • Read Salesforce CRM using familiar SQL Query language
  • Support SELECT / INSERT / UPDATE / DELETE SQL syntax (CRUD operations)
  • Support BULK API for large dataset (Table / SOQL Query)
  • Support Parallel Processing by default (Adjust MaxParallelThreads = 6)
  • Support loading a large amount of data from external systems using SOURCE clause
  • Integrate insight any ODBC Compliant Reporting / ETL tools (e.g. Power BI, Tableau, Qlik, SSRS, Informatica, Excel, SSIS)
  • Support for programming languages such as JAVA, C#, Python, PowerShell and more…
  • Tight integration with Microsoft SQL Server (With support for Gateway Option – No need to install Driver on Server)
  • Support for full SOQL Query Language
  • Supports OAuth Tokens security rather than Password (useful for 2FA / MFA handling)
Runs in your environment ·

SQL Server 2012–2025

through the Data Gateway · Read the FAQ

Ways to use it

Pick how you reach your data.

Configure the DSN once, then query it from any ODBC tool or from SQL Server.

Query objects with SOQL-style SQL.

Select fields, filter, sort and aggregate. Parent and child relationships are supported.

  • Relationship queries
  • Aggregates
  • Preview in the UI
ODBC SalesForce Driver - Create Connection

Inside the UI

The driver UI, step by step.

Real screens from the ZappySys ODBC driver configuration.

Create the DSN

Add a user or system DSN and pick the Salesforce Driver.

SQL example

Query Salesforce objects with SOQL-style SQL.

Use familiar SQL (and SOQL relationship queries) against Salesforce objects, then read the result in any ODBC tool. These statements come from the driver help.

  1. Salesforce object

    Contacts and their parent Accounts in your org (SOQL relationship syntax is supported).

    Contact (object)

    Contact
      Id, FirstName, LastName
      Account.Name   -- parent relationship
  2. Run the SQL query

    SQL QuerySELECT Id, LastName, FirstName, Account.Name FROM Contact WHERE LastName != 'Smith' ORDER BY LastName LIMIT 10

    Run it from the Query Editor or from any ODBC client.

    Bulk API: large reads and writes can use bulk mode.

  3. Rows returned to your tool

    Result columns
    Id LastName FirstName Account.Name parent
    (record Id) (last name) (first name) (account name)

    One row per Contact, up to the LIMIT in the query. Column headers are real; values come from your org.

More statements the driver understands

Use case SQL
Parent to child SELECT Name, (SELECT FirstName, LastName FROM Contacts LIMIT 5) FROM Account WHERE Name='ZappySys'
Aggregates SELECT LeadSource, COUNT(Name) Cnt FROM Lead GROUP BY LeadSource HAVING COUNT(Name) > 100
Update UPDATE account SET name = 'New Company Name', BillingState = 'GA' WHERE id IN ('0014N00001hTNEEQA4')

Result values depend on your Salesforce org.

SQL query examples

Copy a query, change the source, run it.

13 of the 28 examples from the Salesforce Driver help. Open one to see the SQL.

Read files, API responses and objects as rows.

SOQL Query – Basic Query

This example shows how to write simple SOQL query (Salesforce Object Query Language). It uses WHERE clause, ORDER BY and LIMIT clause. Using limit clause it will return only 10 records at maximum.

SELECT Id, LastName, FirstName
FROM Contact
Where LastName!='Smith'
ORDER BY LastName, FirstName
LIMIT 10

Open this example in the help

SOQL Query – Parent fields (Child-to-Parent / Many-to-One)

This example shows how to get field value from related parent object using dot operator.

SELECT Id,FirstName, LastName, Account.Name FROM Contact

Open this example in the help

SOQL Query – Child records (Parent-to-Child / One-to-Many)

This example shows how to get child records for selected parent records (e.g. All contacts for specified accounts).

SELECT Account.Id,Account.Name
    , (SELECT Contact.FirstName, Contact.LastName, Contact.Email FROM Account.Contacts)
FROM Account

Open this example in the help

SOQL Query – Child Query with Order By and LIMIT

This example shows how to use child query and limit number or child records for each parent row.

SELECT Name,
    (SELECT FirstName, LastName FROM Contacts ORDER BY CreatedDate LIMIT 5)
FROM Account
Where Name='ZappySys'

Open this example in the help

SOQL Query – Object and field alias

This example shows how to alias Table name or field name in SOQL queries. SOQL has very limited support for alias. You can alias Table name in any query but field alias is only allowed in Aggregation query only (Query with at least one aggregation function).

SELECT c.Id, c.LastName, a.Name
FROM Contact c,c.Account a
LIMIT 10

Open this example in the help

SOQL Query – GROUP BY / Aggregate function

This example shows how to use GROUP BY clause along with optional HAVING clause. When you use Aggregate function in SQL Query you can also use alias for field (This is the only time alias can be used).

SELECT LeadSource, COUNT(Name) Cnt
FROM Lead
GROUP BY LeadSource
HAVING COUNT(Name) > 100

Open this example in the help

SOQL Query with DateTime / Use of variable

This example shows how to use date/time in WHERE clause. Date and time must be yyyy-MM-ddTHH:mm:ssZ format (make sure to include time part and add Z for UTC indicator after date and time just like example).

SELECT Id, LastName, FirstName, Email, Account.Name
FROM Contact
Where LastModifiedDate < {{System::ContainerStartTime,TO_UTC_DATETIME}} AND LastModifiedDate > 1999-12-31T00:00:00Z AND CreatedDate < YESTERDAY
LIMIT 10

Open this example in the help

See all 28 SQL examples in the help

Compatibility and requirements

Built for Windows, and for your own environment.

  • Windows 11, 10, 8 and 7, and Windows Server 2022, 2019, 2016, 2012 R2 and 2008
  • .NET Framework 4.x. The JDBC Bridge Driver also needs Java 8 or later
  • 32-bit and 64-bit ODBC drivers. SQL Server 2012 through 2025 through the Data Gateway
  • Self-hosted: drivers run in your Windows process, business data does not pass through ZappySys servers, and credentials stay in your DSN
  • Free trial of ODBC PowerPack: test with your own data before you buy

FAQ

Questions about the Salesforce Driver

Which tools and languages can use this driver?

Any ODBC-compliant tool, such as Power BI, Tableau, Qlik, SSRS, Informatica, Excel and SSIS. You can also connect from Java, C#, Python, PowerShell and other languages with an ODBC connection string.

Do I need to install the driver on SQL Server?

No. With the Data Gateway option the driver runs on the gateway machine and SQL Server connects to it through a linked server.

Which edition includes the Salesforce Driver?

The Salesforce Driver is included in the Professional and Enterprise editions of ODBC PowerPack. See the edition comparison for the full list.

Can I update Salesforce data?

Yes. The driver runs INSERT, UPDATE and DELETE statements and can use the Bulk API for larger loads.

Which SQL Server and Windows versions are supported?

Support for SQL Server 2025, 2022, 2019, 2017, 2016, 2014 and 2012 (32/64 bit) through the Data Gateway. See the system requirements.

Can I try it before buying?

Yes. Download ODBC PowerPack, create a DSN and test your own data before you buy.

Independent ratings

Trusted by data teams, recognized by the industry

See why teams trust ZappySys (opens in new tab)

What customers say

  • Customer story

    ZappySys has been a fantastic way to bring our small company into the world of APIs, automation, and systems integration by providing tools within an easy-to-use framework.

    Ben KingeryOxspring Paul
  • Customer story

    At Synchronous Customers, we need to connect various types of data quickly. The super handy ZappySys connectors and great documentation let us do it without writing a lot of code.

    Joel ConnerSynchronous Customers
  • Customer story

    We have worked with the ZappySys support team for over a year and have consistently found them extremely helpful — resourceful and creative in offering multiple solutions to our challenges.

    Senthil SekarPublicis Groupe
  • Trustpilot

    I’ve been using ZappySys for over 6 years — it makes development faster, and I introduced it to my current company.

    Anna JohnsonTrustpilot review
  • Customer quote

    I submitted a support request and had someone logged in and fixing things within 2 hours.

    Barry Wilson
  • Customer quote

    The REST source is very powerful — the only thing I found I could use after trying components from major vendors.

    Jes KirkupKTC
  • Customer quote

    Whenever we run into an obstacle, ZappySys has a solution for us. We are so glad that we chose ZappySys PowerPack.

    Kevin ChenBerricle

Start your free trial today

Install ODBC PowerPack and add a Salesforce Driver DSN.

Preview your data in the driver UI before you connect your tool.

  • One DSN, many toolsPower BI, Excel, SSIS, Python and SQL Server can all use it.
  • Free trialTest the driver with your own data before you buy.
  • Live supportHelp during your trial and after purchase.

New purchases may be eligible for refund review within 30 days. See the refund policy.

Talk to an engineer before or during your trial.

1 / 8