Skip to content

Commit dcc7ea6

Browse files
authored
Updated from sp_addrolemember to ALTER ROLE ADD MEMBER
Code should now use current DDL like ALTER ROLE ADD MEMBER, not the older system stored procedures like sp_addrolemember. Have updated both places that use the older code.
1 parent 45dae5b commit dcc7ea6

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)