Share via

Azure Managed Instance - CREATE DATABAS AS COPY OF

Anonymous
Apr 2, 2022, 3:15 PM

Hi,

I am trying to create a copy of database in azure managed instance. But received this below error looks like I am missing something kindly let me know how to resolve this.

189347-image.png

https://learn.microsoft.com/en-us/sql/t-sql/statements/create-database-transact-sql?view=azuresqldb-current&preserve-view=true&tabs=sqlpool#copy-a-database

Azure SQL Database
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ronen Ariely 15,201 Reputation points
    Apr 2, 2022, 8:06 PM

    Good day,

    You are using AS COPY OF which is not supported in managed instance.

    The link which you are using is for Azure SQL Database.

    Notice in your URL that you have the parameter: view=azuresqldb-current

    At the top of the page you have option to select the product/server that you used:

    191260-189379-image.png

    If you will select Managed Instance then the parameter in the URL will be changed to view=azuresqldb-mi-current

    If you select SQL Server (on premises) or Managed Instance then the document will not shoe you the option of AS COPY OF

    Moreover, in the UERL which you are using it is explicitly say :

    Applies to: Single and pooled databases only.


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.