February 17, 2012 at 7:33 am
Hi All,
I'm trying to work out what's the best way to roll back specific objects. For my company we don't have any form of automation so we rely heavily on tsql scripts or scripting current objects in ssms to use as roll backs.
I have a strategy in place for all objects except SSIS packages.
My question is what kind of roll back strategies are available for rolling back an SSIS package. So far I can think of Exporting package or drop and recreate the package.
Thoughts?
Cheers,
February 17, 2012 at 7:39 am
I would use version control software like TFS giving each change of the package a version number allowing you to get a specific version out of source control
February 17, 2012 at 8:24 am
Loundy (2/17/2012)
Hi All,I'm trying to work out what's the best way to roll back specific objects. For my company we don't have any form of automation so we rely heavily on tsql scripts or scripting current objects in ssms to use as roll backs...
1. BACKUP DATABASE
2. In case of roll back - RESTORE DATABASE
February 17, 2012 at 11:18 am
I'd export the packages, keep them in VCS (free one like Subversion). Then deploy the new one. If it is not correct, or there is an issue, delete it, import the old one.
February 17, 2012 at 2:38 pm
Thanks for the replies, I've been thinking along the lines of exporting. Maybe creating a backup folder in msdb to store the old packages then if we need to restore them move them back to the root of msdb...
February 17, 2012 at 2:48 pm
Loundy (2/17/2012)
Thanks for the replies, I've been thinking along the lines of exporting. Maybe creating a backup folder in msdb to store the old packages then if we need to restore them move them back to the root of msdb...
Kind of handmade version control? it may work, yes.
Other alternatives are using a real version control software or setting in stone a rule that forces DBA to extract and save the previous version of any piece of code that is targetted for changes.
Just as a note to show how old I am, I personally prefer to use the expression "roll back" for transactions while using the expression "back out changes" for code.
_____________________________________
Pablo (Paul) Berzukov
Author of Understanding Database Administration available at Amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.February 22, 2012 at 2:02 am
Since multiple packages can use the same config file and since there could be external dependencies on batch files or xml files there is no once one solution on how to rollback a package. It depends on how the package is designed and what dependencies it has. Msdb is a good place to store and backup as long as all your packages are stand alone.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply