# Datasources

Data sources tell Studio how to connect to the SQL databases that you wish to run your SQL scripts against. You can add an unlimited number of data sources. Any script can be run against any data source.

## Adding Data Sources

Add a Datasource from the [settings-and-customization](https://docs.chartsql.com/chartsql-studio/settings-and-customization "mention") page. You will be taken through a configuration wizard.

<figure><img src="https://4045370218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB0xzzR5x0BnQ6kHixlzd%2Fuploads%2F6kr4qvdRfe0U96jPg4TN%2Fadddatasource_screenshot.png?alt=media&#x26;token=96c58d8e-d611-40d6-8757-a28d25ed5448" alt=""><figcaption><p>Starting the datasource configuration workflow</p></figcaption></figure>

## Switching Data sources

From any open package, you can switch your current data source from the header

<div align="left"><figure><img src="https://4045370218-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB0xzzR5x0BnQ6kHixlzd%2Fuploads%2FTSd9n7lAiiDJW4jth7ic%2Fimage.png?alt=media&#x26;token=1752589d-1e6c-4dff-a1b3-cef125e49765" alt=""><figcaption><p>Selecting a datasource from your editor</p></figcaption></figure></div>
