SSIS 2014: Copying all projects from one server to another


Is there an automated/scripted way to copy all of the Projects/packages I deployed to the SSISDB; from one server to another?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

lcohanDatabase AnalystCommented:
The following Powershell script will output all of the packages in msdb to files stored to c:\temp\ folder so please make sure that folder exists:

 Param($SQLInstance = "localhost")

add-pssnapin sqlserverprovidersnapin100 -ErrorAction SilentlyContinue
add-pssnapin sqlservercmdletsnapin100 -ErrorAction SilentlyContinue

$Packages = Invoke-Sqlcmd -ServerInstance $SQLInstance -Query "SELECT [name],CAST(CAST(packagedata AS VARBINARY(MAX)) AS XML) as pkg FROM msdb..sysssispackages"

Foreach ($pkg in $Packages)
      $pkgName = $
      $pkg.pkg | Out-File -encoding ascii -FilePath "c:\temp\$pkgName.dtsx"

Just change "localhost" to your actual SQL server you want to connect to and copy then import all the packages into the other SQL Server.

Alternatively you can use:

The dtutil command prompt utility is used to manage SQL Server Integration Services packages. The utility can copy, move, delete, or verify the existence of a package. These actions can be performed on any SSIS package that is stored in one of three locations: a Microsoft SQL Server database, the SSIS Package Store, and the file system. The storage type of the package is identified by the /SQL, /FILE, and /DTS options.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.