Getting Started with ODBC driver for Salesforce
ODBC is a widely used Application Programming Interface (API) that allows any application on the client computer to access any data source on the server using SQL.
In an ODBC architecture, applications connect to an ODBC driver manager, which in turn uses a specific ODBC driver to connect to a data source. The client part of the driver that works directly with the application must strictly comply with the ODBC standard. The application doesn't care what database management system (DBMS) is installed on the server. The server part of the driver is adapted to a specific database. Due to this architecture, there is no need to configure the application for a specific DBMS.
Advantages of ODBC driver for Salesforce
Windows
Download the installation executive file of the ODBC driver for Salesforce, open it, and follow the installation wizard instructions step-by-step.
Linux
You can install the ODBC driver for Salesforce on Linux using two installer packages, depending on the distribution you are using.
If you want to install the ODBC driver for Salesforce on Ubuntu, which is a popular open-source Linux distribution based on Debian, then you need to install a .deb package corresponding to the bitness of your operating system. There are also two ways to install the driver either manually or via the command line.
GUI Installation
- Download the .deb package of the required bitness from the Devart website.
- Navigate to the folder with the downloaded package and double-click it.
- In the opened dialog, click the Install button
- If the installation is successfully completed, the Install button changes into the Remove one.
Command-line Installation
- After the driver is installed, run the 'Terminal' program.
- Navigate to the folder with the downloaded package cd ~/Downloads (if you downloaded the package into another folder, specify the path to this folder as the cd command parameter):
cd ~/Downloads/
- To install the devartodbcsalesforce_amd64.deb on a 64-bit system, use the following command:
sudo dpkg -i devartodbcsalesforce_amd64.deb
- If the driver is installed successfully, you will receive the following message:
If you use a CentOS distributive, then you should download the .rpm package and install it via the command line.
- Download the RPM package from the Devart website (The package will be downloaded into the ~/Downloads folder by default).
- Run the 'Konsole' program.
- Navigate to the folder with the downloaded package cd ~/Downloads (If it is another folder, specify the path to it as the cd command parameter):
cd ~/Downloads/
- To install the devart-odbc-salesforce.x86_64.rpm on a 64-bit system, use the following command:
sudo rpm -ivh devart-odbc-salesforce.x86_64.rpm
- If the driver is installed successfully, you will receive the following message:
macOS
- Download the PKG file from the Devart website.
- Run the downloaded file and follow the instructions in the wizard.
- After reading the license agreement, click Agree to proceed with the installation.
- In the License Information dialog box, you should select the license type and activate the product. If you have no activation key, you can select Trial and use the driver for evaluation purposes. If you have an activation key, select the Activation Key option. Copy the activation key from the registration email or your Customer Portal account and paste it into the Activation Key edit box.
- If you have the activation key file, click the Load Activation Key button and browse to it.
- Then click Continue > Install.
Configuring ODBC Data Source Name
After the ODBC driver for Salesforce is installed, you should create a Data Source Name (DSN) for your ODBC connection and test whether it succeeds.
Windows
Open the ODBC Data Source Administrator and select the User DSN or System DSN tab. Most applications work with both types, but some require a specific one. Click Add. In the appeared dialog box, select an ODBC driver for Salesforce and click Finish. In the opened driver setup dialog, enter the connection information in the appropriate fields.
There are two types of authentication here: basic and based on the token.
Basic Authentication
If you choose this way, you need to specify your Salesforce username, password, and security token. By default, a security token is required, but you can make it optional by allowing a range of trusted IP addresses. To gain access to your security token, go to Setup in the top right corner, open the drop-down My Personal Information and choose Reset My Security Token.
macOS
To configure the ODBC driver for Salesforce on macOS, run the iODBC utility of the required bitness. Find the DEVART_SALESFORCE section and click the Configure button:
In the appeared dialog, specify the required connection settings and click OK.
Step 3. Test ODBC Connection
Windows
To test an ODBC connection on Windows, you need just click the Test Connection button in the Configuration dialog. A successful connection message should appear.
Linux
To test the connection with the Salesforce server, run the UnixODBC Test Command utility and test a connection using the following command:.
isql -v DEVART_SALESFORCE
If the connection is successful, you will receive the following message:
macOS
Сlick the Test button to establish a test connection to your data source.