SSMA connect to Azure SQL permission issue

Junker, Jens 11 Reputation points
2021-08-12T14:23:05.44+00:00

Hi,
I wan't to migrate from Oracle to an Azure SQL database with the SQL Server Migration Assistant for Oracle.

I've created a database in Azure and can connect to this database with the Management Studio and the Azure Data Studio. Now I wan't to connect to this database with the Migration Assistant but after the click on connect I receive the message:

"You do not have permission to use the specified default database."

'[myazuredatabase].[dbo]' will be used for the default schema mapping.

And in the tree I can see that I'm connected to the Azure SQL server and I can see the master database and schemas but for [myazuredatabase] I see nothing only a warning 'Current user has no access to the database'.

The use I use is the one which is created in azure during database setup. I also tried the following steps without success: https://azure.microsoft.com/en-us/blog/adding-users-to-your-sql-azure-database/

Has anyone an idea to solve this issue?

Thanks

Azure SQL Database
SQL Server Migration Assistant
SQL Server Migration Assistant
A Microsoft tool designed to automate database migration to SQL Server from Access, DB2, MySQL, Oracle, and SAP ASE.
568 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Junker, Jens 11 Reputation points
    2021-08-13T10:47:13.76+00:00

    Hi Alex,
    thank you very much you helped me a lot! I was blind I have choosen the wrong target I had Azure SQL Managed Database instead of Azure SQL Database. With this change the migration worked like charme.

    Have a nice weekend
    Jens

    1 person found this answer helpful.
    0 comments No comments

  2. Alberto Morillo 34,671 Reputation points MVP Volunteer Moderator
    2021-08-13T10:49:32.36+00:00

    Please add the SQL login you are using to connect to the Azure SQL database to the dbmanager role as shown below T-SQL code:

    CREATE LOGIN login1 WITH password='<ProvidePassword>';
    
    EXEC sp_addrolemember 'dbmanager', 'login1';
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.