catalog.set_environment_reference_type (SSISDB Database)
Sets the reference type and environment name associated with an existing environment reference for a project in the Integration Services catalog.
The following list describes some conditions that may raise an error or warning:
The folder name, environment name, or reference ID is not valid
The user does not appropriate permissions
An absolute reference is specified by using the A character in the reference_location parameter, but the name of the folder was not specified with the environment_folder_name parameter.
A project can have relative or absolute environment references. Relative references refer to the environment by name and require that it resides in the same folder as the project. Absolute references refer to the environment by name and folder, and may refer to environments that reside in a different folder than the project. A project can reference multiple environments.
If a relative reference is specified, the environment_folder_name parameter value is not used, and the environment folder name is automatically set to NULL. If an absolute reference is specified, the environment folder name must be provided in the environment_folder_name parameter.