Skip to content

Commit 2cabeb6

Browse files
authored
Merge pull request #51198 from greglow/patch-3
Updated from sp_addrolemember to ALTER ROLE ADD MEMBER
2 parents cfe60c7 + dcc7ea6 commit 2cabeb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/data-factory/connector-azure-sql-database.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ To use a service principal-based Azure AD application token authentication, foll
138138
4. Grant the service principal needed permissions as you normally do for SQL users or others. Run the following code. For more options, see [this document](https://docs.microsoft.com/sql/relational-databases/system-stored-procedures/sp-addrolemember-transact-sql?view=sql-server-2017).
139139

140140
```sql
141-
EXEC sp_addrolemember [role name], [your application name];
141+
ALTER ROLE [role name] ADD MEMBER [your application name];
142142
```
143143

144144
5. Configure an Azure SQL Database linked service in Azure Data Factory.
@@ -185,7 +185,7 @@ To use managed identity authentication, follow these steps.
185185
3. Grant the Data Factory managed identity needed permissions as you normally do for SQL users and others. Run the following code. For more options, see [this document](https://docs.microsoft.com/sql/relational-databases/system-stored-procedures/sp-addrolemember-transact-sql?view=sql-server-2017).
186186

187187
```sql
188-
EXEC sp_addrolemember [role name], [your Data Factory name];
188+
ALTER ROLE [role name] ADD MEMBER [your Data Factory name];
189189
```
190190

191191
4. Configure an Azure SQL Database linked service in Azure Data Factory.

0 commit comments

Comments
 (0)