Hello @Narendra ,
Thanks for the question and using MS Q&A platform.
As per the error message, it looks like your Data factory managed identity doesn’t have access to the azure SQL server.
When you create the data factory, by default system managed identity will be created with the same name. You will need to provide access to this managed identity.
Go to Data factory and on the search, under settings, click on managed identities. This is your datafactory system managed identity.
Connect to your DB and run the following commands.
Please note: To execute the below commands, you will need to login using AAD authentication and AAD admin access is required.
You can use Azure portal or SSMS
CREATE USER [datafactory_name] FROM EXTERNAL PROVIDER;
for db_datareader and db_datawriter
EXEC sys.sp_addrolemember
@rolename = N'db_datareader',
@membername = [datafactory_name]
EXEC sys.sp_addrolemember
@rolename = N'db_datawriter',
@membername = [datafactory_name]
If your managed service needs owner permissions
EXEC sys.sp_addrolemember
@rolename = N'db_owner',
@membername = [datafactory_name]
Please note: ALTER ROLE ADD MEMBER is not supported in synapse.
Please let us know if you have any further questions.