Restore SQL Server DB direct from another DB

Raheel picture Raheel · Aug 17, 2010 · Viewed 13.4k times · Source

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.

Answer

abatishchev picture abatishchev · Aug 17, 2010

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

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