2024-05-31 14:31:27 +00:00
---
id: saphana
title: SAP HANA
---
ToolJet can connect to SAP HANA databases to read and write data.
2024-10-15 07:14:34 +00:00
< div style = {{paddingTop:'24px'}} >
2024-05-31 14:31:27 +00:00
## Connection
2024-10-15 07:14:34 +00:00
To establish a connection with the SAP HANA datasource, you can either click on the ** + Add new Data source** button located on the query panel or navigate to the ** [Data Sources ](/docs/data-sources/overview )** page through the ToolJet dashboard.
2024-05-31 14:31:27 +00:00
ToolJet requires the following to connect to your SAP HANA database:
- **Host**
- **Port**
- **Username**
- **Password**
:::info
2024-10-15 07:14:34 +00:00
Please make sure the **Host/IP** of the database is accessible from your VPC if you have self-hosted ToolJet. If you are using ToolJet cloud, please **whitelist** our IP.
2024-05-31 14:31:27 +00:00
:::
2024-10-15 07:14:34 +00:00
< img className = "screenshot-full" src = "/img/datasource-reference/saphana/connect-v2.png" alt = "ToolJet - Data source - SAP HANA" / >
2024-05-31 14:31:27 +00:00
< / div >
2024-10-15 07:14:34 +00:00
< div style = {{paddingTop:'24px'}} >
2024-05-31 14:31:27 +00:00
## Querying SAP HANA
2024-10-15 07:14:34 +00:00
1. Click on ** + Add** button of the query manager at the bottom panel of the editor.
2. Select the **SAP HANA** datasource added in previous step.
3. Add the Query.
4. Click on the **Preview** button to preview the output or Click on the **Run** button to create and trigger the query.
2024-05-31 14:31:27 +00:00
2024-10-15 07:14:34 +00:00
< img className = "screenshot-full" src = "/img/datasource-reference/saphana/query-v2.png" alt = "saphana query" / >
2024-05-31 14:31:27 +00:00
2024-10-15 07:14:34 +00:00
```sql
select * from PRODUCTS
```
2024-05-31 14:31:27 +00:00
:::tip
Query results can be transformed using transformations. Read our transformations documentation to see how: ** [link ](/docs/tutorial/transformations )**
2024-10-15 07:14:34 +00:00
:::
< / div >