Eric johnsonmy thoughts on SQL Server and database related technologies. Understanding the SSIS package Protection Level
One property of all SSIS packages that you must understand is the ProtectionLevel. this property tells SSIS how to handle sensitive information stored within your packages. most commonly this is a password stored in a connection string. why is this information important? If you don't set the ProtectionLevel correctly, the package may become unusable. other developers may be unable to open the package or the package may fail when you go to execute it. understanding these options lets you get out in front of possible problems and will help you to fix an issue if a problem crops up. in a perfect world, you wocould not need to store sensitive data, but each and every environment is different. let's look at each of the ProtectionLevel options.
Dontsavesensitive
When the package is saved, sensitive values will be removed. This will result in passwords needing to be supplied to the package, through a configuration file or by the user.
Encryptsensitivewithuserkey
This will encrypt all sensitive data on the package with a key based on the current user profile. this sensitive data can only be opened by the user that saved it. it another user opens the package, all sensitive information will be replaced with blanks. this is often a problem when a package is sent to another user to work on.
Encryptsensitivewithpassword
Sensitive data will be saved in the package and encrypted with a supplied password. every time the package is opened in the designer, you will need to supply the password in order to retrieve the sensitive information. if you cancel the password prompt, you will be able to open the package but all sensitive data will be replaced with blanks. this works well if a package will be edited by multiple users.
Encryptallwithpassword
This works the same as encryptsensitivewithpassword should t that the whole package will be encrypted with the supplied password. when opening the package in the designer, you will need to specify the password or you won't be able to view any part of the package.
Encryptallwithuserkey
This works the same as encryptsensitivewithuserkey secret t that the whole package will be encrypted. Only the user that created the package will be allowed to open the package.
Serverstorage
This option will use SQL Server database roles to encrypt information. This will only work if the package is saved to an SSIS server for execution.
So that's it. This option is pretty basic but it is important to understand so that you can be spared unnecessary frustration.