Cross Subscription Copying of Databases on Windows Azure SQL Database

后端 未结 7 858
北恋
北恋 2020-12-24 13:13

We are about to split our testing and production instances in Windows Azure into two separate subscriptions. Currently we have 3 Windows Azure SQL Database instances that r

7条回答
  •  爱一瞬间的悲伤
    2020-12-24 13:23

    For anyone landing here, it does appear to be possible to use CREATE DATABASE newDB AS COPY OF [server].[olddb] ( OPTION [, OPTION ...] ) even when the servers are in different subscriptions.

    See more at Create Database (Azure SQL Database) - MSDN

    Example from MS Docs:

    CREATE DATABASE db_copy AS COPY OF ozabzw7545.db_original ( SERVICE_OBJECTIVE = 'P2' ) ;
    

    In my setup I have the admin account and password (login) the same on both servers - that probably helps. Operation will fail if you don't have admin permissions on original server.

    I have found through testing that I am not able to change the Edition from Standard to Premium despite including the 'Edition' option - I'm not sure why that is.

提交回复
热议问题