Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Database Copy to another

$
0
0
I have a SQL database on Server1 called DB1. I need that entire database copied over to a different server (call it Server2) each night. I'd like to schedule a SQL Agent job to do this.

I'd prefer not to setup a linked server on Server2 so that's why I'm asking this question.

What is the best practices method of accomplishing this? Is the best route to schedule a native backup of DB1 on Server1 and then schedule a restore of that .bak onto Server2? I worry about the job failing if people are connected to DB1 on Server2 at the time of the scheduled restore.

Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>