# Databricks

## Copy your credentials

Find the following values:

* **Server hostname.** This looks something like `dbc-a1b2345c-d6e7.cloud.databricks.com`.
* **HTTP Path.** This will look similar to `/sql/1.0/endpoints/a1b234c5678901d2`.
* **Token.** This will be similar to `dapi12345678901234567890123456789012`.

## Set up a database connection

When inside a workbook, click **View** > **Databases**, then click the **+** icon and follow the on-screen instructions.

<figure><img src="https://4179539225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZqboFGZzD87nn7oPsm%2Fuploads%2Fq4NhTQGm55oWdwjgKbGI%2FScreenshot%202023-10-16%20at%2014.40.46.png?alt=media&#x26;token=b003aec3-3584-4cef-9c4b-2401694a2593" alt=""><figcaption></figcaption></figure>

## Query the SQL Warehouse

You can now query your Databricks SQL warehouse with a [sql-cell](https://datalab-docs.datacamp.com/work/sql-cell "mention"). Select it in the **Select source** dropdown in the top left corner of a SQL cell.

<figure><img src="https://4179539225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZqboFGZzD87nn7oPsm%2Fuploads%2FNnhRAOI9NpuKsfpHPq8l%2FScreenshot%202023-10-17%20at%2010.26.34.png?alt=media&#x26;token=8ae0cc18-557f-4d3b-84a9-d58a01892809" alt=""><figcaption></figcaption></figure>
