Overwrite Training Sql database on the Production database

Mr Boo 1 Reputation point
2021-09-07T16:26:00.633+00:00

Hello sir ,

Please see that attachment screenshot .
I have two databases. One is the Production database ("LawDB") and the other one is the Training Site Database ("LawDB_Training").

Now, Training Database ("LawDB_Training") have a lot of database changes.
Therefore, I wanna copy Training Database ("LawDB_Training") and wanna overwrite that training database on the Production Database("LawDB").

So that, Production Database will get the latest version.
But I don't know how to do it in the Azure Portal.

If anyone knows this one, Please kindly give me the step by step instructions.

Many Thanks

Best Regards
Htet

129918-a1.png

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. Oury Ba-MSFT 21,126 Reputation points Microsoft Employee Moderator
    2021-09-10T17:17:55.863+00:00

    Hi @Mr Boo Thank you for posting your question.

    You cannot overwrite it. You will need to create a copy of LawDB_Training database and then rename to "LawDB".
    https://learn.microsoft.com/en-us/azure/azure-sql/database/database-copy?tabs=azure-powershell

    Let us know if that help

    Regards,
    Oury


Your answer

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