Microsoft SQL Server Connector
Microsoft SQL Server (MSSQL) is a popular relational database system.
This component allows querying an MSSQL database.
API Documentation
This component was built using the Microsoft SQL Server documentation.
Connections
Azure Active Directory
Authenticate requests to a Microsoft SQL Server or Azure SQL Database using Azure Active Directory service principal credentials. Compatible with Microsoft Fabric.
Use the Azure Active Directory connection to connect to Azure SQL Database, Microsoft Fabric, or any SQL Server instance that supports Azure Active Directory authentication via service principal credentials.
Prerequisites
- An Azure AD App Registration with a client secret
- The service principal must have the appropriate permissions on the target database or Fabric workspace
Configure the Connection
- Host: The server address (e.g.,
my-server.database.windows.netfor Azure SQL, ormy-server.datawarehouse.fabric.microsoft.comfor Fabric) - Port: The database port (default:
1433) - Database: The name of the database or Fabric warehouse
- Tenant ID: The Directory (Tenant) ID from the Azure AD App Registration
- Client ID: The Application (Client) ID from the Azure AD App Registration
- Client Secret: The client secret from the Azure AD App Registration
- Connection Timeout: Milliseconds before the connection attempt is considered failed (default:
15000)
Token acquisition and refresh are handled automatically by the underlying driver.
| Input | Comments | Default |
|---|---|---|
| Host | The address of the SQL Server or Fabric warehouse endpoint. | |
| Port | The port the database server is exposing. | 1433 |
| Database | The name of the database or Fabric warehouse. | |
| Tenant ID | The Directory (Tenant) ID from the Azure AD App Registration. | |
| Client ID | The Application (Client) ID from the Azure AD App Registration. | |
| Client Secret | The Client Secret from the Azure AD App Registration. | |
| Connection Timeout | The number of milliseconds before the attempt to connect is considered failed. | 15000 |
Basic Authentication
Authenticate requests to a Microsoft SQL Server using a username and password.
Use the Basic Authentication connection to connect to a Microsoft SQL Server instance using a username and password.
Configure the Connection
- Host: The address of the database server (e.g.,
192.168.0.1) - Port: The port the database server is exposing (default:
1433) - Database: The name of the database (e.g.,
msdb) - Connection Timeout: The number of milliseconds before the attempt to connect is considered failed (default:
15000) - Username: The SQL Server login username for authentication
- Password: The SQL Server login password for authentication
| Input | Comments | Default |
|---|---|---|
| Host | The address of the database server. | |
| Port | The port the database server is exposing. | 1433 |
| Database | The name of the database. | |
| Connection Timeout | The number of milliseconds before the attempt to connect is considered failed. | 15000 |
| Username | The SQL Server login username for authentication. | |
| Password | The SQL Server login password for authentication. |
Actions
Execute Stored Procedure
Execute a stored procedure on a Microsoft SQL Server database.
| Input | Comments | Default |
|---|---|---|
| Stored Procedure | The name of the stored procedure to execute. | |
| Timeout | The number of milliseconds to wait for a response from the server. If the timeout expires before the server responds, an error will be thrown. | 60000 |
| Connection | The Microsoft SQL Server connection to use. |
Query
Execute a SQL query against a Microsoft SQL Server database.
| Input | Comments | Default |
|---|---|---|
| Query | The SQL query to execute against the Microsoft SQL Server database. Supports optional named parameters using the '@variable' operator. | SELECT * FROM Customers WHERE customerId = @id |
| Parameters | The key-value pairs to bind as named parameters in the query, referenced using the '@variable' operator. | |
| Parameters Object | The JSON key-value object of named parameters to bind in the query. Values are merged with the Parameters input. | |
| Timeout | The number of milliseconds to wait for a response from the server. If the timeout expires before the server responds, an error will be thrown. | 60000 |
| Connection | The Microsoft SQL Server connection to use. |