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
>If you hit an error with the error code "UserErrorFailedToConnectToSqlServer" and a message like "The session limit for the database is XXX and has been reached," add `Pooling=false` to your connection string and try again.
93
+
94
+
### Windows authentication
95
+
96
+
To use Windows authentication, the following properties are supported:
87
97
88
98
| Property | Description | Required |
89
99
|:--- |:--- |:--- |
90
100
| type | The type property must be set to **SqlServer**. | Yes |
91
-
| connectionString |Specify **connectionString** information that's needed to connect to the SQL Server database by using either SQL authentication or Windows authentication. Refer to the following samples.<br/>You also can put a password in Azure Key Vault. If it's SQL authentication, pull the `password` configuration out of the connection string. For more information, see the JSON example following the table and [Store credentials in Azure Key Vault](store-credentials-in-key-vault.md). |Yes |
92
-
| userName |Specify a user name if you use Windows authentication. An example is **domainname\\username**. |No|
93
-
| password |Specify a password for the user account you specified for the user name. Mark this field as **SecureString** to store it securely. Or, you can [reference a secret stored in Azure Key Vault](store-credentials-in-key-vault.md). |No|
101
+
| connectionString |Specify **connectionString** information that's needed to connect to the SQL Server database by using Windows authentication. Refer to the following samples.<br/>You also can put a password in Azure Key Vault. For more information, see the JSON example following the table and [Store credentials in Azure Key Vault](store-credentials-in-key-vault.md). |Yes |
102
+
| userName |Specify a user name. An example is **domainname\\username**. |Yes|
103
+
| password |Specify a password for the user account you specified for the user name. Mark this field as **SecureString** to store it securely. Or, you can [reference a secret stored in Azure Key Vault](store-credentials-in-key-vault.md). |Yes|
94
104
| alwaysEncryptedSettings | Specify **alwaysencryptedsettings** information that's needed to enable Always Encrypted to protect sensitive data stored in SQL server by using either managed identity or service principal. For more information, see the JSON example following the table and [Using Always Encrypted](#using-always-encrypted) section. If not specified, the default always encrypted setting is disabled. |No |
95
105
| connectVia | This [integration runtime](concepts-integration-runtime.md) is used to connect to the data store. Learn more from [Prerequisites](#prerequisites) section. If not specified, the default Azure integration runtime is used. |No |
96
106
97
107
> [!NOTE]
98
108
> Windows authentication is not supported in data flow.
99
109
100
-
>[!TIP]
101
-
>If you hit an error with the error code "UserErrorFailedToConnectToSqlServer" and a message like "The session limit for the database is XXX and has been reached," add `Pooling=false` to your connection string and try again.
102
-
103
-
**Example 1: Use SQL authentication**
110
+
**Example: Use Windows authentication**
104
111
105
112
```json
106
113
{
107
114
"name": "SqlServerLinkedService",
108
115
"properties": {
109
116
"type": "SqlServer",
110
117
"typeProperties": {
111
-
"connectionString": "Data Source=<servername>\\<instance name if using named instance>;Initial Catalog=<databasename>;Integrated Security=False;User ID=<username>;Password=<password>;"
118
+
"connectionString": "Data Source=<servername>\\<instance name if using named instance>;Initial Catalog=<databasename>;Integrated Security=True;",
119
+
"userName": "<domain\\username>",
120
+
"password": {
121
+
"type": "SecureString",
122
+
"value": "<password>"
123
+
}
112
124
},
113
125
"connectVia": {
114
126
"referenceName": "<name of Integration Runtime>",
@@ -118,23 +130,27 @@ The following properties are supported for the SQL Server linked service:
118
130
}
119
131
```
120
132
121
-
**Example 2: Use SQL authentication with a password in Azure Key Vault**
133
+
### SQL authentication
134
+
135
+
To use SQL authentication, the following properties are supported:
136
+
137
+
| Property | Description | Required |
138
+
|:--- |:--- |:--- |
139
+
| type | The type property must be set to **SqlServer**. | Yes |
140
+
| connectionString | Specify **connectionString** information that's needed to connect to the SQL Server database by using either SQL authentication. Specify a login name as your user name, and ensure the database that you want to connect is mapped to this login. Refer to the following samples. | Yes |
141
+
| password | If you want to put a password in Azure Key Vault, pull the `password` configuration out of the connection string. For more information, see the JSON example following the table and [Store credentials in Azure Key Vault](store-credentials-in-key-vault.md). |Yes |
142
+
| alwaysEncryptedSettings | Specify **alwaysencryptedsettings** information that's needed to enable Always Encrypted to protect sensitive data stored in SQL server by using either managed identity or service principal. For more information, see the JSON example following the table and [Using Always Encrypted](#using-always-encrypted) section. If not specified, the default always encrypted setting is disabled. |No |
143
+
| connectVia | This [integration runtime](concepts-integration-runtime.md) is used to connect to the data store. Learn more from [Prerequisites](#prerequisites) section. If not specified, the default Azure integration runtime is used. |No |
144
+
145
+
**Example: Use SQL authentication**
122
146
123
147
```json
124
148
{
125
149
"name": "SqlServerLinkedService",
126
150
"properties": {
127
151
"type": "SqlServer",
128
152
"typeProperties": {
129
-
"connectionString": "Data Source=<servername>\\<instance name if using named instance>;Initial Catalog=<databasename>;Integrated Security=False;User ID=<username>;",
130
-
"password": {
131
-
"type": "AzureKeyVaultSecret",
132
-
"store": {
133
-
"referenceName": "<Azure Key Vault linked service name>",
134
-
"type": "LinkedServiceReference"
135
-
},
136
-
"secretName": "<secretName>"
137
-
}
153
+
"connectionString": "Data Source=<servername>\\<instance name if using named instance>;Initial Catalog=<databasename>;Integrated Security=False;User ID=<username>;Password=<password>;"
138
154
},
139
155
"connectVia": {
140
156
"referenceName": "<name of Integration Runtime>",
@@ -143,20 +159,22 @@ The following properties are supported for the SQL Server linked service:
143
159
}
144
160
}
145
161
```
146
-
147
-
**Example 3: Use Windows authentication**
162
+
**Example: Use SQL authentication with a password in Azure Key Vault**
148
163
149
164
```json
150
165
{
151
166
"name": "SqlServerLinkedService",
152
167
"properties": {
153
168
"type": "SqlServer",
154
169
"typeProperties": {
155
-
"connectionString": "Data Source=<servername>\\<instance name if using named instance>;Initial Catalog=<databasename>;Integrated Security=True;",
156
-
"userName": "<domain\\username>",
157
-
"password": {
158
-
"type": "SecureString",
159
-
"value": "<password>"
170
+
"connectionString": "Data Source=<servername>\\<instance name if using named instance>;Initial Catalog=<databasename>;Integrated Security=False;User ID=<username>;",
171
+
"password": {
172
+
"type": "AzureKeyVaultSecret",
173
+
"store": {
174
+
"referenceName": "<Azure Key Vault linked service name>",
175
+
"type": "LinkedServiceReference"
176
+
},
177
+
"secretName": "<secretName>"
160
178
}
161
179
},
162
180
"connectVia": {
@@ -166,8 +184,7 @@ The following properties are supported for the SQL Server linked service:
0 commit comments