I'm trying to use either the Azure Data Studio SQL Migration Wizard or the Azure SQL Database Offline Wizard to migrate local databases to Azure SQL databases.
My databases have tables that at times are empty, but both wizards are failing to migrate them because of this, which I don't understand:
Table data cannot be migrated, source table is empty.
It is essential the tables and their respective relationships aren't left behind as they are integral to the application! I've searched for solutions but can't find anything matching these error messages.
Can anyone please offer an explanation of why the wizards won't process empty tables, and if there's a workaround?
The solution was to avoid the migration wizard entirely and do the whole thing in SSMS. I don't believe this tool has been properly developed or tested given the number of issues people face with frozen progress that they get billed for.
By using the SSMS "Export Data Tier Application" functionality and saving as a .BACPAC file, I was then able to also use SSMS to connect to the destination server and "Import Data-tier Application".
Hint: If you do this, SQL Azure needs a high amount of computing power to get the job done. Therefore I commissioned the database as GEN5_80 (price is enormous per month, but you scale it back down in the Azure portal as soon as the job finishes). My 5GB database took about 10 minutes to migrate.