# 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/astera-data-stack-v9/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://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2F4bB6vO5ZqVUeor1pOzfB%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://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2FpUwkEKtRLMDgtUKeBWbG%2F1.png?alt=media)

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

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

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

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

5. 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.
6. *Test Connection* to make sure that your connection has been established with the Salesforce - Legacy database. When the connection is established, click *Next*.

![](https://3891069449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28dJIkGHacXhBlux3efx%2Fuploads%2FQCqBMYjxh2nsNNmRyKlt%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/astera-data-stack-v9/dataflows/sources/database-table-source#database-table-options).

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