Connecting FlySpeed SQL Query to Salesforce

FlySpeed SQL Query is database query tool that can use ODBC to extend the number of database back ends available to it.

The Salesforce ODBC driver enables you to work with Salesforce data in FlySpeed SQL Query. Note that the procedure outlined in this blog is the same for any ODBC driver, so it's still relevant even if you are using FlySpeed SQL Query with another ODBC driver.

The Salesforce ODBC driver is available to download from the Easysoft web site:

  1. Download the Windows Salesforce ODBC driver.
  2. Install and license the Salesforce ODBC driver on the machine where is installed.

    For installation instructions, refer to the Salesforce ODBC driver documentation.

Before you can use the Salesforce ODBC driver to connect FlySpeed SQL Query to Salesforce, you need to configure an ODBC data source. An ODBC data source stores the connection details for the target database (in this case, Salesforce) and the ODBC driver that is required to connect to it (in this case, the Salesforce ODBC driver).

To create a Salesforce ODBC driver data source:

  1. In the 32-bit version of ODBC Data Source Administrator, choose the System DSN tab, and then choose Add.

    To run the 32-bit version of ODBC Data Source Administrator, in the Windows Run dialog box, enter:

    %windir%\syswow64\odbcad32.exe
  2. In the Create New Data Source dialog box, choose Easysoft ODBC-Salesforce Driver, and then choose Finish.
  3. Complete the DSN Setup dialog box:
    Setting Value
    DSN Salesforce
    User Name The name of your Salesforce user. For example, myuser@mydomain.com.
    Password The password for your Salesforce user.
    Token The security token for your Salesforce user, if required.

    To find out whether you need to supply a security token, choose the Test button. If the connection attempt fails with an error which contains LOGIN_MUST_USE_SECURITY_TOKEN, you need to supply one.

    Salesforce emails the security token to the email address associated with your Salesforce user account. If you have not received a security token, you can regenerate it. Salesforce will then email the new security token to you. To regenerate your security token, log in to Salesforce and then choose Setup from the user menu. Search for "security token" in the Quick Find box. Choose Reset Security Token in the Reset Security Token page. When you receive the token in your email client, copy it and then paste it into the Token field.

  4. Use the Test button to verify that you can successfully connect to Salesforce.

To work with Salesforce data in FlySpeed SQL Query:

  1. In FlySpeed SQL Query, choose Connection > New Connection.

    The New Connection Wizard starts.

  2. In the Connection Type list, choose Generic ODBC Connection. Choose Next.
  3. From the System/User DSN list, choose your Salesforce ODBC Data Source. Choose Next.
  4. Choose Next.
  5. In the Name box, enter "Salesforce".
  6. Choose Finish.

    The Database User Password dialog box is displayed. Choose OK.

  7. In the SQL Text pane, enter SELECT * FROM Account. Choose the Execute button.