mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-22 14:07:26 +00:00
* add getter function and table transformation docs * add dropdown, number-input, password-input and text-input docs * [docs] custom parameters for queries * update docs for revamped components, runJS and runPy functions and sidebar * change order of properties and other misc changes * update query panel and other minor fixes * added version 2.29.0 --------- Co-authored-by: Shubhendra <withshubh@gmail.com>
42 lines
1.7 KiB
Markdown
42 lines
1.7 KiB
Markdown
---
|
|
id: mssql
|
|
title: MS SQL Server / Azure SQL databases
|
|
---
|
|
|
|
# MS SQL Server / Azure SQL databases
|
|
|
|
|
|
ToolJet can connect to MS SQL Server & Azure SQL databases to read and write data.
|
|
|
|
## Connection
|
|
|
|
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.
|
|
|
|
To establish a connection with the MS SQL Server data source, click on the `+Add new data source` button located on the query panel or navigate to the [Data Sources](https://docs.tooljet.com/docs/data-sources/overview) page from the ToolJet dashboard.
|
|
|
|
ToolJet requires the following to connect to your PostgreSQL database.
|
|
|
|
- **Host**
|
|
- **Port**
|
|
- **Username**
|
|
- **Password**
|
|
- **Azure** - Select this option if you are using Azure SQL databases.
|
|
|
|
It is recommended to create a new database user so that you can control the access levels of ToolJet.
|
|
|
|
Click on 'Test connection' button to verify if the credentials are correct and that the database is accessible to ToolJet server. Click on 'Save' button to save the data source.
|
|
|
|
<img className="screenshot-full" src="/img/datasource-reference/mssql/connect.gif" alt="ToolJet - Redis connection" height="420"/>
|
|
|
|
|
|
## Querying SQL Server / Azure SQL databases
|
|
Click on '+' button of the query manager at the bottom panel of the editor and select the database added in the previous step as the data source.
|
|
|
|
Click on the 'run' button to run the query.
|
|
|
|
<img className="screenshot-full" src="/img/datasource-reference/mssql/query.gif" alt="ToolJet - Redis connection" height="420"/>
|
|
|
|
|
|
:::tip
|
|
Query results can be transformed using transformations. Read our transformations documentation to see how: [link](/docs/tutorial/transformations)
|
|
:::
|