Tutorial Gateway

  • C
  • C#
  • Java
  • Python
  • SQL
  • MySQL
  • Js
  • BI Tools
    • Informatica
    • Talend
    • Tableau
    • Power BI
    • SSIS
    • SSRS
    • SSAS
    • MDX
    • R Tutorial
    • Alteryx
    • QlikView
  • More
    • C Programs
    • C++ Programs
    • Python Programs
    • Java Programs

SSIS Package Configuration using Environment Variable

by suresh

How to apply SSIS Package Configuration using Environment Variable with example?. We previously described the list of Package Configurations in the SSIS Package Configuration article.

Before we start the SSIS package configuration, You have to create environment variables. So that you can access them while configuring the package. To create Environment Variables, Go to the Control Panel -> System and Security -> System and click on the Advanced System Settings.

Or Right-click on the My Computer, select the properties, and then select Advanced System Settings will open the System properties.

SSIS Package Configuration Using Environment Variable 2

Simple, and elegant way is type Environment Var in the search bar, and select the Edit the System Environment variables option.

SSIS Package Configuration Using Environment Variable 1

By selecting the Edit the System Environment variables option, the system properties window will open. To add a new system variable, please click on the Environment variables.. button.

SSIS Package Configuration Using Environment Variable 3

Once you click on the Environment variables.. button, below shown window will open. Here you can see all the existing variables and their values. Please click on the New.. button to add a new variable.

SSIS Package Configuration Using Environment Variable 4

As you can see we are adding Variable Name as EducationDetails, and Variable Value as Bachelors

SSIS Package Configuration Using Environment Variable 5

Next, we are creating one more variable Variable Name as IncomeVariable, and Variable Value as 70000

SSIS Package Configuration Using Environment Variable 6

Click OK to close the Environment Variables window

SSIS Package Configuration Using Environment Variable 7

SSIS Package Configuration Using Environment Variable Example

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

SSIS Package Configuration Using Environment Variable 8

Right-click on the control flow region will open the context menu. Please select the Package Configurations.. option from it

SSIS Package Configuration Using Environment Variable 9

Once you select the Package Configurations.., a new window called Package Configurations Organizer opened.

SSIS Package Configuration Using Environment Variable 10

Please checkmark the Enable Package Configurations to enable the configurations. Next, click on the Add button to add a new SSIS Package Configuration using Environment Variable.

SSIS Package Configuration Using Environment Variable 11

Clicking the Add button will open a wizard. Please, checkmark Don’t show this page again to avoid this first page.

SSIS Package Configuration Using Environment Variable 12

Select Configuration type: This is the page that we have to use to select the configuration type. By default, the XML configuration file selected by the SSIS

SSIS Package Configuration Using Environment Variable 13

Here, we are explaining about SSIS package configuration using an environment variable. So, let me choose the Environment Variable as the configuration type.

SSIS Package Configuration Using Environment Variable 14

As you can see, we are selecting the EducationDetails variable. Remember, if you don’t find the newly created variable, please close the projects, and reopen the BIDS.

SSIS Package Configuration Using Environment Variable 15

Select Target Property: You have to specify the target value here. It may be variable or connection manager settings.

SSIS Package Configuration Using Environment Variable 16

Here we want to assign this Environment variable to package variable (InputEducation) value. It means, a default value of InputEducation, i.e., Masters Degree, will replace with the Bachelors at run time.

SSIS Package Configuration Using Environment Variable 17

Let me rename the Configuration name as Education Details Configuration, and Click the Finish button to close the wizard.

SSIS Package Configuration Using Environment Variable 18

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

SSIS Package Configuration Using Environment Variable 19

Use the same approach to add one more package configuration of type Environment Variable. This time we are selecting the IncomeVariable and assigning it to the InputYearlyIncome variable (package variable).

SSIS Package Configuration Using Environment Variable 20

Let me assign the configuration name as Income Variable Configuration.

SSIS Package Configuration Using Environment Variable 21

Now you can see our newly created Environment variables configurations. Click OK to close the window

SSIS Package Configuration Using Environment Variable 22

Let us Run the package to see the result.

SSIS Package Configuration Using Environment Variable 23

From the above screenshot, you can see that it is displaying the records whose Education is Bachelors, and yearly Income is 70000. It means, package variables values replaced by the Environment variable values

Placed Under: SSIS

  • What is SSIS
  • Install SQL Server Data Tools
  • Learn SSIS in 28 Days
  • Create a SSIS Project
  • Create SSIS Package
  • SSIS Connection Manager
  • OLE DB Connection Manager
  • SSIS ADO Connection Manager
  • ADO.NET Connection Manager
  • SSIS Cache Connection Manager
  • SSIS Excel Connection Manager
  • SSIS File Connection Manager
  • SSIS FTP Connection Manager
  • SSIS SMO Connection Manager
  • Source Assistance in SSIS
  • Flat File Source in SSIS
  • OLE DB Source in SSIS
  • Excel Source in SSIS
  • ADO.NET Source in SSIS
  • SSIS FLAT FILE Destination
  • SSIS OLE DB Destination
  • SSIS ADO.NET Destination
  • SSIS Transformations
  • SSIS Audit Transformation
  • SSIS Aggregate Transformation
  • SSIS Aggregate Advanced Mode
  • SSIS Cache Transformation
  • SSIS Character Map
  • SSIS Conditional Split
  • SSIS Copy Column
  • SSIS Data Conversion
  • SSIS Derived Column
  • SSIS Export Column
  • SSIS Fuzzy Grouping
  • SSIS Fuzzy Lookup
  • SSIS Import Column
  • SSIS Lookup Introduction
  • Lookup – OLE DB Connection
  • SSIS Lookup in Full Cache Mode
  • SSIS Lookup – Case Sensitivity
  • SSIS Merge Transformation
  • SSIS Merge Join Transformation
  • SSIS Merge Join – Left Outer Join
  • SSIS Merge – Right Outer Join
  • SSIS Merge Join – Full Outer Join
  • SSIS Multicast Transformation
  • SSIS OLEDB Command
  • OLEDB Command – Delete Data
  • OLEDB Command-Update Data
  • SSIS Percentage Sampling
  • SSIS Pivot Transformation 2008
  • SSIS Pivot Transformation
  • SSIS Row Count Transformation
  • SSIS Row Sampling
  • Script Component as Source
  • Script Component as Destination
  • SSIS Script as Transformation
  • SSIS Sort Transformation
  • SSIS SCD Type 0
  • SSIS SCD Type 1
  • SSIS SCD Type 2
  • SSIS Term Lookup
  • SSIS Term Extraction Intro
  • Term Extraction – Extract Nouns
  • SSIS Extract Noun Phrases
  • Extract Nouns & Noun Phrases
  • Term Extraction – Exclusion Tab
  • SSIS Unpivot Transformation
  • SSIS Union All Transformation
  • SSIS For Loop Container
  • SSIS ForEach File Enumerator
  • SSIS ForEach SMO Enumerator
  • SSIS ForEach Variable
  • SSIS Foreach NodeList
  • Foreach ADO.NET Schema Rowset Enumerator
  • SSIS Bulk Insert Task
  • SSIS Data Profiling Task
  • Execute T-SQL Statement Task
  • SSIS Execute SQL Task Intro
  • SSIS Execute SQL Task Example
  • Execute SQL Task- Single Rowset
  • Execute SQL Task – Full Row Set
  • SSIS Execute Package Task
  • Execute Packages in SQL Server
  • Execute Packages in File System
  • SSIS Execute Package Project Reference
  • SSIS File System Task
  • SSIS File System Task- Copy Files
  • File System Task-Copy Directory
  • File System Task – Delete Files
  • File System Task – Delete Folder
  • File System Task -Move Directory
  • SSIS File System Task -Move File
  • File System – Move Multiple files
  • File System Task – Rename File
  • File System Task – Set Attributes
  • SSIS FTP TASK
  • SSIS Create Local Directory
  • SSIS Create Remote Directory
  • SSIS FTP Task Send Files
  • SSIS FTP – Send Multiple Files
  • SSIS FTP Task Delete Local Files
  • FTP TASK Delete Local Directory
  • FTP Task Delete Remote files
  • SSIS Delete Remote Directory
  • SSIS FTP Task Receive Files
  • SSIS FTP Receive Multiple Files
  • SSIS Script Task
  • Transfer SQL Server Objects Task
  • Transfer SQL Table Structures
  • Transfer SQL Tables with Data
  • Transfer SQL Stored Procedures
  • Transfer User Defined Functions
  • Transfer SQL Views in SSIS
  • SSIS Web Service Task
  • SSIS XML Task-Validate XML File
  • Transform XML File using XSLT
  • XML Task-XML files Differences
  • Create SSIS Catalog
  • Package Deployment using BIDS
  • Deploy Package Using SQL
  • Deploy using SQL Server Wizard
  • SSIS Breakpoints
  • SSIS Checkpoints
  • SSIS Error Handling
  • SSIS Event Handlers
  • SSIS Transactions
  • SSIS Logging
  • SSIS Parameters
  • SSIS Package Configuration
  • Configure using SQL Server
  • Config using Registry Entry
  • Conf with Environment Variable
  • SSIS XML Configuration File
  • XML Configuration File Part 2
  • SSIS Package Protection Level
  • SSIS Incremental Load
  • Incremental Load Example 2
  • SSIS Remove Double Quotes
  • C Tutorial
  • C# Tutorial
  • Java Tutorial
  • JavaScript Tutorial
  • Python Tutorial
  • MySQL Tutorial
  • SQL Server Tutorial
  • R Tutorial
  • Power BI Tutorial
  • Tableau Tutorial
  • SSIS Tutorial
  • SSRS Tutorial
  • Informatica Tutorial
  • Talend Tutorial
  • C Programs
  • C++ Programs
  • Java Programs
  • Python Programs
  • MDX Tutorial
  • SSAS Tutorial
  • QlikView Tutorial

Copyright © 2021 | Tutorial Gateway· All Rights Reserved by Suresh

Home | About Us | Contact Us | Privacy Policy