Copy data from Salesforce to SQL Server with Spectral Core

Spectral Core provide database conversion, comparison and replication tools. This tutorial shows how to use the Spectral Core Full Convert application to copy data from Salesforce to SQL server by using the Easysoft Salesforce ODBC driver.

To get started:

Before you can use the Salesforce ODBC driver to connect your application 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 run ODBC Data Source Administrator (which you use to create a data source), in the Windows Run dialog box, enter this command:

%windir%\system32\odbcad32.exe

To create a Salesforce ODBC driver data source:

  1. In ODBC Data Source Administrator, choose the System DSN tab, and then choose Add.
  2. In the Create New Data Source dialog box, choose Easysoft Salesforce ODBC Driver, and then choose Finish.

    Note Complete the configuration dialog as directed in the next step. You also need to turn off the Custom Null option.

  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.
  5. Start Full Convert (64-bit).
  6. In the Project section, choose New database copy project.
  7. In the Source database list, choose ODBC.
  8. Choose Existing Connection and then choose your Salesforce ODBC driver data source from the DSN list.
  9. Choose the Next button.
  10. Choose SQL Server from the Target Database list.
  11. Choose your instance, authentication method, database name, connection protocol, and port.
  12. Choose the Next button.
  13. Choose the Finish button.
  14. In the Project Tables list choose the Salesforce tables you want to copy.
  15. Choose the Copy your database button.
  16. Choose the Browse Target button to examine the Salesforce data in SQL Server.