2024-05-31 14:31:27 +00:00
---
id: snowflake
title: Snowflake
---
ToolJet can connect to Snowflake databases to read and write data.
2024-09-23 06:06:01 +00:00
< div style = {{paddingTop:'24px'}} >
2024-05-31 14:31:27 +00:00
## Connection
2024-09-23 06:06:01 +00:00
To establish a connection with the Snowflake data source, 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 from the ToolJet dashboard and choose Snowflake as the data source.
2024-05-31 14:31:27 +00:00
2024-09-23 06:06:01 +00:00
:::info
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-09-23 06:06:01 +00:00
You can find snowflake docs on network policies ** [here ](https://docs.snowflake.com/en/user-guide/network-policies.html )**.
:::
2024-05-31 14:31:27 +00:00
2024-09-23 06:06:01 +00:00
ToolJet requires the following to connect to Snowflake database.
2024-05-31 14:31:27 +00:00
- **Account**
- **Username**
- **Password**
:::info
You can also configure for ** [additional optional parameters ](https://docs.snowflake.com/en/user-guide/nodejs-driver-use.html#additional-connection-options )**.
:::
2024-09-23 06:06:01 +00:00
< img className = "screenshot-full" src = "/img/datasource-reference/snowflake/snowflake-connect-v2.png" alt = "ToolJet - Snowflake connection" / >
2024-05-31 14:31:27 +00:00
< / div >
2024-09-23 06:06:01 +00:00
< div style = {{paddingTop:'24px'}} >
2024-05-31 14:31:27 +00:00
2024-09-23 06:06:01 +00:00
## Querying Snowflake
2024-05-31 14:31:27 +00:00
2024-09-23 06:06:01 +00:00
1. Click on ** + Add** button of the query manager at the bottom panel of the editor.
2. Select the **Snowflake** datasource added in previous step.
3. Select the **SQL Mode** form the dropdown and enter the query.
4. Click on the **Preview** button to preview the output or Click on the **Run** button to trigger the query.
2024-05-31 14:31:27 +00:00
2024-09-23 06:06:01 +00:00
< img className = "screenshot-full" src = "/img/datasource-reference/snowflake/snowflake-query-v2.png" alt = "ToolJet - Snowflake query" / >
2024-05-31 14:31:27 +00:00
2024-09-23 06:06:01 +00:00
```sql
select * from "SNOWFLAKE_SAMPLE_DATA"."WEATHER"."DAILY_14_TOTAL" limit 10;
```
2024-05-31 14:31:27 +00:00
:::tip
2024-09-27 06:07:14 +00:00
Query results can be transformed using transformations. Read our [transformations ](/docs/tutorial/transformations ) documentation to learn more.
2024-05-31 14:31:27 +00:00
:::
2024-09-23 06:06:01 +00:00
< / div >