Create and Map a Server Environment
You create a server environment to specify runtime values for packages contained in a project you've deployed to the Integration Services server. You can then map the environment variables to parameters, for a specific package, for entry-point packages, or for all the packages in a given project. An entry-point package is typically a parent package that executes a child package.
Important
For a given execution, a package can execute only with the values contained in a single server environment.
You can query views for a list of server environments, environment references, and environment variables. You can also call stored to add, delete, and modify environments, environment references, and environment variables. For more information, see the Server Environments, Server Variables and Server Environment References section in SSIS Catalog.
To create and use a server environment
In Management Studio, expand the Integration Services Catalogs> SSISDB node in Object Explorer, and locate the Environments folder of the project for which you want to create an environment.
Right-click the Environments folder, and then click Create Environment.
Type a name for the environment and optionally a description, and then click OK.
Right-click the new environment and then click Properties.
On the Variables page, do the following to add a variable.
Select the Type for the variable. The name of the variable does not need to match the name of the project parameter that you map to the variable.
Enter an optional Description for the variable.
Enter the Value for the environment variable.
For information about the rules for environment variable names, see the Environment Variable section in SSIS Catalog.
Indicate whether the variable contains sensitive value, by selecting or clearing the Sensitive checkbox.
If you select Sensitive, the variable value does not display in the Value field.
Sensitive values are encrypted in the SSISDB catalog. For more information about the encryption, see SSIS Catalog.
On the Permissions page, grant or deny permissions for selected users and roles by doing the following.
Click Browse, and then select one or more users and roles in the Browse All Principals dialog box.
In the Logins or roles area, select the user or role that you want to grant or deny permissions for.
In the Explicit area, click Grant or Deny next to each permission.
To script the environment, click Script. By default, the script displays in a new Query Editor window.
Tip
You need to click Script after you've made one or changes to the environment properties, such as adding a variable, and before you click OK in the Environment Properties dialog box. Otherwise, a script is not generated.
Click OK to save your changes to the environment properties.
Under the SSISDB node in Object Explorer, expand the Projects folder, right-click the project, and then click Configure.
On the References page, click Add to add an environment, and then click OK to save the reference to the environment.
Right-click the project again, and then click Configure.
To map the environment variable to a parameter that you added to the package at design-time or to a parameter that was generated when you converted the Integration Services project to the project deployment model, do the following.,
In the Parameters tab on the Parameters page, click the browse button next to the Value field.
Click Use environment variable, and then select the environment variable you created.
To map the environment variable to a connection manager property, do the following. Parameters are automatically generated on the SSIS server for the connection manager properties.
In the Connection Managers tab on the Parameters page, click the browse button next to the Value field.
Click Use environment variable, and then select the environment variable you created.
Click OK twice to save your changes.