# Connect Salesforce to SQL Server through SSIS

**URL:** <https://community.cdata.com/t/connect-salesforce-to-sql-server-through-ssis/48>\
**Category:** How-to with CData\
**Tags:** sql, article, salesforce, ssis\
**Created:** [March 20, 2023, 7:05pm UTC](https://community.cdata.com/t/connect-salesforce-to-sql-server-through-ssis/48 "2023-03-20T19:05:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@anonymous](https://community.cdata.com/u/anonymous)\
**Post date:** [March 20, 2023, 7:05pm UTC](https://community.cdata.com/t/connect-salesforce-to-sql-server-through-ssis/48/1 "2023-03-20T19:05:41Z")

</div>

Using SQL Server as a backup for critical business data provides an essential safety net against loss. In addition, backing up data to SQL Server enables business users to more easily connect that data with features like reporting, full-text search, analytics, and more.

This example demonstrates how to use the CData [ADO.NET](http://ADO.NET) Data Provider for Salesforce inside of a SQL Server SSIS workflow to transfer data directly from Salesforce into a Microsoft SQL Server database. The exact same procedure outlined below can be used with any&nbsp;[CData ADO.NET Data Providers](https://www.cdata.com/ado/)&nbsp;to connect SQL Server directly with remote data via SSIS.

1. Open Visual Studio and create a new Integration Services Project.

2. Add a new Data Flow Task from the Toolbox onto the Control Flow screen.

3. In the Data Flow screen, add a [ADO.NET](http://ADO.NET) Source and an OLE DB Destination from the Toolbox.

4. Add a new Data Connection, and select the CData Provider for Salesforce.

5. Enter the connection details for your Salesforce account. In this example, we are using a Salesforce Developer Account for this example. Required connection properties are User, Password, and Access Token. OAuth is also supported. See the “Getting Started” chapter for a guide to connecting from SSIS.

6. Open the [ADO.NET](http://ADO.NET) Source editor and set the following information:

7. Close the [ADO.NET](http://ADO.NET) Source editor and drag the arrow below the [ADO.NET](http://ADO.NET) Source to connect it to the OLE DB Destination.

8. Open the OLE DB Destination and enter the following information in the Destination Component Editor.

9. Configure any properties you wish to on the Mappings screen.

10. Close the OLE DB Destination Editor and run the project. After the SSIS Task has finished executing, your database will be populated with data obtained from Salesforce.

## SSIS Sample Project

To get started using the CData [ADO.NET](http://ADO.NET) Provider for Salesforce within SQL Server SSIS,&nbsp;[download the fully functional sample project](https://www.cdata.com/kb/articles/ado-ssistask-sf.zip).

_Note_: Before running the demo, you will need to change your connection details to fit your environment.
