0

enter image description here

During the POC, while I am trying to connect my source, source connection is established successfully, but I don't get any databases populated in the source.

I want to migrate the Azure SQL databases from one tenant to another tenant using DMS in Azure SQL databases.

  1. I have granted DB_owner role
  2. I am able to see the databases with same login in SSMS.
  3. I have whitelisted my IP

1 Answer 1

0

Azure Database Migration Service is a fully managed service designed to enable seamless migrations from multiple database sources to Azure data platforms

here are supported migration scenarios using Azure DMS mentioned in document. Azure SQL database is not supported as source.

Use SqlPackage to copy Azure SQL Database from one tenant to another:=

  • Download and install SQLPackage from here [Download and install SqlPackage - SQL Server | Microsoft Learn] After installing SQLPackage go to the installed folder C:\Program Files\Microsoft SQL Server\160\DAC\bin, You need to run CMD from this location.

  • Export Database : Export with the following command, you only need to replace your path, server and database name as well as username and password to connect to the database.

SqlPackage /Action:Export /TargetFile:"C:\SQLPackageFiles\ExportHere.bacpac" /df:"C:\SQLPackageFiles\log.txt" /SourceConnectionString:"Server=tcp:xxx.database.windows.net,1433;Initial Catalog=YourDatabaseNameHere;Persist Security Info=False;User ID=YourUserName;Password=YourPassword;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"
  • Import the database to new subscription/ tenants: For import new database in the target you do not need to create or prepare anything, the only thing you need to run the following command and put your parameter there!
SqlPackage /Action:Import /SourceFile:"C:\SQLPackageFiles\ExportHere.bacpac" /df:"C:\SQLPackageFiles\log_import.txt" /TargetConnectionString:"Server=tcp:YourTargetServerName.windows.net,1433;Initial Catalog=MyNewDatabase;Persist Security Info=False;User ID=YourUserName;Password=YourPassword;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"

Refer this document by @Matt Mansoomi for more understanding

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.