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.com ODBC Driver to connect your application to Salesforce.com, you need to configure an ODBC data source. An ODBC data source stores the connection details for the target database (e.g. Salesforce.com) and the ODBC driver that is required to connect to it (e.g. the Salesforce.com ODBC driver).

To run ODBC Administrator (which you use to create a data source), in the Windows Run dialog box, type this command:

%windir%\system32\odbcad32.exe

To create a Salesforce.com ODBC Driver data source:

  1. In ODBC 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.
  3. Complete the Easysoft Salesforce ODBC Driver DSN Setup dialog box:
    Setting Value
    DSN EasysoftSalesforce
    User Name The name of your Salesforce.com user. For example, myuser@mydomain.com.
    Password The password for your Salesforce.com user.
    Token The security token for your Salesforce.com 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.com emails the security token to the email address associated with your Salesforce.com user account. If you have not received a security token, you can regenerate it. Salesforce.com will then email the new security token to you. To regenerate your security token, log in to Salesforce.com and then choose Setup from the user menu. Search for "security token" in the Quick Find box. Click 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.

    Custom Null Click to clear this setting.
  4. Use the Test button to verify that you can successfully connect to Salesforce.com.

Spectral Core Full Convert

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