Skip to content

Latest commit

 

History

History
66 lines (44 loc) · 2.21 KB

catalog-rename-environment-ssisdb-database.md

File metadata and controls

66 lines (44 loc) · 2.21 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic
catalog.rename_environment (SSISDB Database)
catalog.rename_environment (SSISDB Database)
chugugrace
chugu
03/04/2017
sql
integration-services
language-reference

catalog.rename_environment (SSISDB Database)

[!INCLUDEsqlserver-ssis]

[!INCLUDE SQL Server]

Renames an environment in the [!INCLUDEssISnoversion] catalog.

Syntax

catalog.rename_environment [ @folder_name = ] folder_name  
    , [ @environment_name = ] environment_name  
    , [ @new_environment_name= ] new_environment_name  

Arguments

[ @folder_name = ] folder_name
The name of the folder that contains the environment. The folder_name is nvarchar(128).

[ @environment_name = ] environment_name
The original name of the environment. The environment_name is nvarchar(128).

[ @new_environment_name = ] new_environment_name
The new name of the environment. The new_environment_name is nvarchar(128).

Return Code Value

0 (success)

Result Sets

None

Permissions

This stored procedure requires one of the following permissions:

  • MODIFY permissions on the environment

  • Membership to the ssis_admin database role

  • Membership to the sysadmin server role

Errors and Warnings

The following list describes some conditions that may raise an error or warning:

  • The original environment name is not valid

  • The new name has already been used on an existing environment

Remarks

Environment references from projects are not automatically updated when you rename the environment. Environment references must be updated accordingly. This stored procedure will succeed even if environment references are broken by changing the environment name. Environment references must be updated after this stored procedure completes.

Note

When an environment reference is not valid, validation and execution of the corresponding packages that use those references will fail.