Link to home
Start Free TrialLog in
Avatar of Cayman21
Cayman21Flag for United States of America

asked on

SSIS Help: Backup a Database and then Restore it to a Different server

Hello fellow experts,

I'm not very familiar with SSIS, I've poked around at a few wizard created import and export scripts, but that's about the extent of it.

What I need to do is create an SSIS package that will take a Backup of database on one server, then (delete and restore or) restore over a database on another server.

Thanks!
Avatar of Anthony Perkins
Anthony Perkins
Flag of United States of America image

Is there any particular reason you want to use SSIS?
Avatar of Cayman21

ASKER

Well, I guess that's not a requirement.  But they are on different servers, so how would you suggest to do this in a automated fashion?
You could do it as a batch file that has the following:
1. Executes a SQLCmd to backup the source database.
2. Copies the backup from the source server to the target server.
3. Execute a SQLCmd to restore to the target server.
That sounds like it would work.  What do I need to do to set that up?
Actually that won't work.

I don't have access to save the database backup on the server.

With SSIS, can't I stream the data to my local machine?
ASKER CERTIFIED SOLUTION
Avatar of Steve Hogg
Steve Hogg
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nmcdermaid
nmcdermaid

>> I don't have access to save the database backup on the server.
But the SQL Agent might and if you run that task under the SQL Agent it may work.
It all depends on how everything has been set up.