Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restore SQL Server DB direct from another DB

How can I restore a live database without taking its backup first?

We can do this from SQL Server Management Studio, but I want to do this with script, which i can run as a scheduled job.

like image 649
Raheel Avatar asked Aug 17 '10 08:08

Raheel


People also ask

How do you backup and restore SQL Server database from one server to another?

Backup and restore SQL database from one server to anotherLaunch SQL Server Management Studio and connect to the instance you want to backup. Then right-click the specific database, choose Tasks > Back Up. 2. Make sure the backup type is full backup, and then select a destination.


1 Answers

Choose restore source - another DB. To generate a SQL script - press the button

http://i.stack.imgur.com/q6RLm.png

like image 127
abatishchev Avatar answered Oct 06 '22 20:10

abatishchev