SSIS Package Configuration using Registry Entry

In this article, we will show you how to apply SSIS Package Configuration using Registry Entry with example. We already explained the list of Package Configurations in our previous article. So, please refer to the Package Configuration to understand the same.

Before we start the SSIS Package Configuration using Registry Entry, You have to add a new entry to the registry. So that you can access it while configuring the package. To open a system registry, Go to the Search Bar and Type Run. Remember, it is dangerous to edit Registry entries. So, I suggest you back up the registry file before you start proceeding.

SSIS Package Configuration using Registry Entry 1

Type Regedit (Short form of Registry edit) and click OK

SSIS Package Configuration using Registry Entry 2

Right-click on the HKEY_CURRENT_USER will open the context menu. Please select New and then Key

SSIS Package Configuration using Registry Entry 3

Assign the key name as per your requirements. Here we assigned Variables as the key name.

SSIS Package Configuration using Registry Entry 4

Right-click on the Variables key-> New -> String value to add value to the Key

SSIS Package Configuration using Registry Entry 5

Assign Value as the name of the new string value

SSIS Package Configuration using Registry Entry 6

Double click on the Value will open a new pop up window. Assign data as Bachelors.

SSIS Package Configuration using Registry Entry 7

SSIS Package Configuration using Registry Entry

Before we start SSIS Package Configuration using Registry Entry, let me execute the package and see what is it returning.

SSIS Package Configuration using Registry Entry 8

To configure the package, right-click on the control flow region will open the context menu. Please select the Package Configurations.. option from it

SSIS Package Configuration using Registry Entry 9

Once you select the Package Configurations.., a new window called Package Configurations Organizer is opened. Please checkmark the Enable Package Configurations to enable the configurations. Next, click on the Add button to add a new Package Configuration using Registry Entry in SSIS.

SSIS Package Configuration using Registry Entry 10

Clicking the Add button will open a package configuration wizard. The first page is the welcome wizard, and please checkmark Don’t show this page again to avoid this page.

SSIS Package Configuration using Registry Entry 11

Select Configuration type: This is the page we must use to select the configuration type. By default, SSIS selects an XML configuration file. In this example, we are explaining SSIS package configuration using registry entry. So, let me choose the Registry Entry as the configuration type.

Please refer to the below links for the remaining configurations.

  1. Environment Variable
  2. Parent-Child Package Configuration
  3. Server Configuration
  4. XML Configuration File
  5. XML Configuration File in Environment Variable
SSIS Package Configuration using Registry Entry 12

Next, we are specifying the registry key that we created earlier.

SSIS Package Configuration using Registry Entry 13

Select Target Property: You have to specify the target value here. Here we want to assign this Registry value to package variable (InputEducation) value. It means the default value of InputEducation, i.e., Masters Degree, will replace with the Bachelors at run time.

SSIS Package Configuration using Registry Entry 14

Let me rename the SSIS package Configuration name as Registry Entry Configuration. And click the Finish button to close the wizard.

SSIS Package Configuration using Registry Entry 15

Now you can see our newly created Environment variable configuration that holds the Education value.

SSIS Package Configuration using Registry Entry 16

Let us Run the package to see the result.

SSIS Package Configuration using Registry Entry 17

From the above screenshot, you can see that it is displaying the records whose Education is Bachelors, and yearly Income is 90000. It means, package variable value (InputEducation) replaced by the Registry key value.