You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/integrations/engines/azuresql.md
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,29 +2,35 @@
2
2
3
3
[Azure SQL](https://azure.microsoft.com/en-us/products/azure-sql) is "a family of managed, secure, and intelligent products that use the SQL Server database engine in the Azure cloud."
4
4
5
-
The Azure SQL adapter only supports authentication with a username and password. It does not support authentication with Microsoft Entra or Azure Active Directory.
6
-
7
5
## Local/Built-in Scheduler
8
6
**Engine Adapter Type**: `azuresql`
9
7
10
8
### Installation
9
+
#### User / Password Authentication:
11
10
```
12
11
pip install "sqlmesh[azuresql]"
13
12
```
13
+
#### Microsoft Entra ID / Azure Active Directory Authentication:
|`type`| Engine type name - must be `azuresql`| string | Y |
20
23
|`host`| The hostname of the Azure SQL server | string | Y |
21
-
|`user`| The username to use for authentication with the Azure SQL server | string | N |
22
-
|`password`| The password to use for authentication with the Azure SQL server | string | N |
24
+
|`user`| The username / client ID to use for authentication with the Azure SQL server | string | N |
25
+
|`password`| The password / client secret to use for authentication with the Azure SQL server | string | N |
23
26
|`port`| The port number of the Azure SQL server | int | N |
24
27
|`database`| The target database | string | N |
25
28
|`charset`| The character set used for the connection | string | N |
26
29
|`timeout`| The query timeout in seconds. Default: no timeout | int | N |
27
30
|`login_timeout`| The timeout for connection and login in seconds. Default: 60 | int | N |
28
31
|`appname`| The application name to use for the connection | string | N |
29
32
|`conn_properties`| The list of connection properties | list[string]| N |
30
-
|`autocommit`| Is autocommit mode enabled. Default: false | bool | N |
33
+
|`autocommit`| Is autocommit mode enabled. Default: false | bool | N |
34
+
|`driver`| The driver to use for the connection. Default: pymssql | string | N |
35
+
|`driver_name`| The driver name to use for the connection. E.g., *ODBC Driver 18 for SQL Server*| string | N |
36
+
|`odbc_properties`| The dict of ODBC connection properties. E.g., authentication: ActiveDirectoryServicePrincipal. See more [here](https://learn.microsoft.com/en-us/sql/connect/odbc/dsn-connection-string-attribute?view=sql-server-ver16). | dict | N |
|`type`| Engine type name - must be `mssql`| string | Y |
16
21
|`host`| The hostname of the MSSQL server | string | Y |
17
-
|`user`| The username to use for authentication with the MSSQL server | string | N |
18
-
|`password`| The password to use for authentication with the MSSQL server | string | N |
22
+
|`user`| The username / client id to use for authentication with the MSSQL server | string | N |
23
+
|`password`| The password / client secret to use for authentication with the MSSQL server | string | N |
19
24
|`port`| The port number of the MSSQL server | int | N |
20
25
|`database`| The target database | string | N |
21
26
|`charset`| The character set used for the connection | string | N |
@@ -24,3 +29,6 @@ pip install "sqlmesh[mssql]"
24
29
|`appname`| The application name to use for the connection | string | N |
25
30
|`conn_properties`| The list of connection properties | list[string]| N |
26
31
|`autocommit`| Is autocommit mode enabled. Default: false | bool | N |
32
+
|`driver`| The driver to use for the connection. Default: pymssql | string | N |
33
+
|`driver_name`| The driver name to use for the connection. E.g., *ODBC Driver 18 for SQL Server*| string | N |
34
+
|`odbc_properties`| The dict of ODBC connection properties. E.g., authentication: ActiveDirectoryServicePrincipal. See more [here](https://learn.microsoft.com/en-us/sql/connect/odbc/dsn-connection-string-attribute?view=sql-server-ver16). | dict | N |
0 commit comments