We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

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

Cayman21
Cayman21 asked
on
Medium Priority
1,714 Views
Last Modified: 2013-11-30
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!
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2012

Commented:
Is there any particular reason you want to use SSIS?

Author

Commented:
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?
CERTIFIED EXPERT
Top Expert 2012

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

Author

Commented:
That sounds like it would work.  What do I need to do to set that up?

Author

Commented:
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?
CERTIFIED EXPERT
Commented:
SSIS has the Maintenance Plan Task, Back Up Database. You can backup to a local file. Restoring is a different issue as no delivered task is available to restore. But you can use a SQL Task, or Maint. Plan Task, Execute T-SQL Statement Task to do the restore.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
>> 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.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.