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.
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.