Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to copy sql server database from one to another server without any backups

Tags:

I have two machines, A and B. In my machine A, I have SQL server with some database. I need to copy the database from Machine A to B without taking any backups. How do I do that?

like image 485
susan stefan Avatar asked Sep 13 '12 08:09

susan stefan


People also ask

How do I copy a database from one server to another locally?

Manual Method to Copy Database from one Server to Another First of all, launch the SQL Server Management Studio from Object Explorer and connect to the Source Server. Right-click on the database, select the option Tasks and then choose the Copy Database option.


1 Answers

You can use the Copy Database functionality in SQL Server Management Studio.

Right-click the database, select "Tasks", "Copy database". If you can take the database offline, you can also choose to detach it, copy the files to the new server, and then reattach the database after.

See also the Microsoft Documentation: http://technet.microsoft.com/en-us/library/ms188664.aspx

like image 170
SchmitzIT Avatar answered Oct 11 '22 04:10

SchmitzIT