May 12, 2009 05:12 PM

Easily Import and Export SSIS Packages

Storing packages in the msdb database has its advantages
Rating: (0)
SQL Server Magazine
InstantDoc ID #101918

In SQL Server 2005 and later, you can create a SQL Server Integration Services (SSIS) package in Microsoft Visual Studio and store that package as a file (with a .dtsx extension) or in SQL Server's msdb database. Storing SSIS packages under a well-defined folder structure in msdb offers a couple of advantages. Because the SSIS packages are stored in a centralized location, you can easily back up all of them by backing up the msdb database. Plus, when you store SSIS packages in the msdb database, they're protected by another layer of security. When the SSIS packages are stored as files, they can be accessed and modified by anyone who has read/write permission for the folders in which the packages are stored (unless they are password protected).

Despite the benefits of storing SSIS packages in msdb, getting them into the database can be a hassle, especially when your packages are scattered throughout hundreds of subfolders in the SSIS folder structure. In such cases, you need to manually import all the packages, one at a time. Although you can use the dtutil command-line utility to copy, move, and delete SSIS packages, it can be tricky and time-consuming to use. And if there's an existing SSIS folder structure on msdb, it must be removed prior to importing a new one.

To avoid these hassles, I developed the SSIS Package Management solution. As Figure 1 shows, you can use it to import a SSIS folder structure (and all its underlying SSIS packages) to msdb, export an SSIS folder structure from msdb, and delete an existing SSIS folder structure from msdb.


Figure 1: The SSIS Package Management solution's functionality (click to enlarge)


The SSIS Package Management solution consists of three packages: a main package named Package_Management.dtsx and two subpackages named Extract_Packages_From_MSDB_To_Files.dtsx and Import_SSIS_Packages_To_MSDB.dtsx (see Figure 2).


Figure 2: The SSIS Package Management solution's three packages


Add a Comment

Hi Karen

Thank you very much for this article.
I am a bit green on SSIS. Could explain briefly how to install this solution?

Thanks in advance
Love your site
Al

Alfasuli7/13/2010 12:52:09 PM


The ~$cumentation.doc file was a hidden file that contained the actual article. It has now been deleted from the 101918.zip file. Sorry for any confusion.

Karen Bemowski, senior editor
SQL Server Magazine, Windows IT Pro

Karen6/15/2009 2:19:30 PM


The "documentation" document in the package is not a valid Word document. Can you provide a useable documentation file?

Justin6/12/2009 8:29:26 AM


You must log on before posting a comment.

Are you a new visitor? Register Here

Field data type change - query timeout

Hi,       I need to change a data type of a field in SQL Server 2005. The fiels most be changed from varchar(13) to varchar (20), but because of th...222-96220

GOOGLE LINKS
SPONSORED LINKS
FEATURED LINKS