SQL SERVER – Copy Database from Instance to Another Instance – Copy Paste in SQL Server

SQL Server has feature which copy database from one database to another database and it can be automated as well using SSIS.

Make sure you have SQL Server Agent Turned on as this feature will create a job. The same job will execute the task. Make sure that SSIS is properly configured as well with necessary security permissions. You can automate this process as well control error logging.

Following are the steps to copy database from one instance to another instance.

SQL SERVER - Copy Database from Instance to Another Instance - Copy Paste in SQL Server copywizard1

SQL SERVER - Copy Database from Instance to Another Instance - Copy Paste in SQL Server copywizard2
Specify Source Server
SQL SERVER - Copy Database from Instance to Another Instance - Copy Paste in SQL Server copywizard3
Specify Destination Server
SQL SERVER - Copy Database from Instance to Another Instance - Copy Paste in SQL Server copywizard4
Here you can select option if you want to keep the database ONLINE when it is being copied.
SQL SERVER - Copy Database from Instance to Another Instance - Copy Paste in SQL Server copywizard5
You can also select option of MOVE or COPY database as well.

SQL SERVER - Copy Database from Instance to Another Instance - Copy Paste in SQL Server copywizard6
Give appropriate database name.
SQL SERVER - Copy Database from Instance to Another Instance - Copy Paste in SQL Server copywizard7
On this screen you can select additional options to copy as well.
SQL SERVER - Copy Database from Instance to Another Instance - Copy Paste in SQL Server copywizard8
You create the package over here.
SQL SERVER - Copy Database from Instance to Another Instance - Copy Paste in SQL Server copywizard9
You can schedule the package using SQL Server Agent.
SQL SERVER - Copy Database from Instance to Another Instance - Copy Paste in SQL Server copywizard10

SQL SERVER - Copy Database from Instance to Another Instance - Copy Paste in SQL Server copywizard11

SQL SERVER - Copy Database from Instance to Another Instance - Copy Paste in SQL Server copywizard12
When this process is over it will show the success message and database will be copied to another server.
SQL SERVER - Copy Database from Instance to Another Instance - Copy Paste in SQL Server copywizard13

You can see how easy is the process to copy the database to another server.

Watch SQL in Sixty Seconds Episode on same subject.

[youtube=http://www.youtube.com/watch?v=lSh3fq-MikE]

Reference: Pinal Dave (https://blog.sqlauthority.com)

SQL Azure, SQL Backup and Restore, SQL Server
Previous Post
SQL SERVER – Getting Columns Headers without Result Data – SET FMTONLY ON
Next Post
SQL SERVER – A Quick Notes on SQL Azure

Related Posts

Leave a Reply