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 SSIS Package Configuration to understand the same.
Before we start the package configuration, You have to add new entry to registry. So that you can access it while configuring the package. In order to open system registry, Go to the Search Bar and Type Run. Remember, it is dangerous to edit Registry entries so, I suggest you to back up the registry file before you start proceeding.
Type Regedit (Short form of Registry edit) and click OK
Right-click on the HKEY_CURRENT_USER will open the context menu. Please select New and then Key
Assign the key name as per your requirements. Here we assigned SSIS Variables as the key name.
Right-click on the SSIS Variables key-> New -> String value to add value to the Key
Assign Value as the name of the new string value
Double click on the Value will open a new pop up window. Assign data as Bachelors.
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.
In order to configure the package, right-click on the control flow region will open the context menu. Please select the Package Configurations.. option from the context menu
Once you select the Package Configurations.., a new window called Package Configurations Organizer is opened. Please check mark the Enable Package Configurations to enable the configurations. Next, click on the Add button to add new configuration.
Clicking the Add button, will open a package configuration wizard. First page is the welcome wizard, please check mark Don’t shown this page again to avoid this page.
Select Configuration type: This is the page that we have to use to select the configuration type. By default XML configuration file is selected by the SSIS. In this example we are explaining about SSIS package configuration using registry entry. So, let me select the Registry Entry as the configuration type.
Next we are specifying the registry key that we created earlier.
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, default value of InputEducation i.e., Masters Degree will be replaced with the Bachelors at run time.
Let me rename the Configuration name as Registry Entry Configuration, and Click Finish button to close the wizard.
Now you can see our newly created Environment variable configuration that holds the Education value.
Let us Run the package to see the result.
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) is replaced by the Registry key value
Thank You for Visiting Our Blog