# Connecting to Salesforce - Legacy Database

Salesforce - Legacy is an acclaimed customer relationship management (CRM) platform used by enterprises across the globe. Astera offers in-built connectivity to Salesforce - Legacy databases at both source and destination points.

The connectivity also extends to other objects such as *Database Lookup, SQL Statement Lookup* in Transformations, *SQL Script Task* in a Workflow, *Database Diff Processor* and *Slowly Changing Dimensions* in Database Write Strategies.

In this article, we will learn to configure Salesforce - Legacy as a data provider in Astera. We will be using the[ *Database Table Source*](https://documentation.astera.com/v/astera-data-stack-v8/dataflows/sources/database-table-source) object to establish the connection with the Salesforce - Legacy database.

1. To configure the properties of a *Database* source, right-click on the object’s header and select *Properties.*

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FnpKLT7HtKJrx7oSuuRxv%2F0.png?alt=media)

2. This will open a new *Database Connection* window where you need to provide details to configure a connection with the database.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FoBJRAOmjbUI1lFh9z7gK%2F1.png?alt=media)

3. On the *Database Connection* window, select *Salesforce - Legacy* from the *Data Providers* drop-down list.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FD97LkRJozus64Z7zgp0r%2F2.png?alt=media)

4. Provide the credentials to your Salesforce - Legacy account.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FVo3ehqZs5QlJ3rezDHjb%2F3.png?alt=media)

* There are the following options available for Salesforce - Legacy settings:
  * *Retrieve deleted items* - Includes items that were previously deleted.
  * *Connect to sandbox* - Creates a new connection to Sandbox completely isolated from your actual Salesforce - Legacy account.

5. *Test Connection* to make sure that your connection has been established with the Salesforce - Legacy database. When the connection is established, click *Next*.

![](https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2F4cVUl4COepI3wzAyxNJh%2F4.png?alt=media)

The connection to the Salesforce - Legacy database has been established successfully. You can now pick a table from the Salesforce - Legacy database and use the data in your dataflow. To learn more about how to pick a table from a database source and specify other reading options, click [here](https://documentation.astera.com/v/astera-data-stack-v8/dataflows/sources/database-table-source#configuring-the-database-table-source-object).

This concludes connecting to the Salesforce - Legacy database in Astera.
