I am learning how to administrate MS Sql server 2012, come cross a question and its suggested solution for copying an existing database for different name.
Administer a windows azure sql database named Orders, you need to create a copy of this table and renamed as Order_Reporting
CREATE DATABASE Order_Reporting COPY OF Orders
I was wondering whether such useful query could also be used in standard ms sql server some how?
Best Answer
No,
CREATE DATABASE .. COPY OF ..
is ONLY applicable to Azure SQL DatabaseAs a side note,
In order to create a copy of current database in SQL Server, you have to backup the database and then restore it with a different name
e.g.