【问题标题】:SSIS - Package Configuration - Environment VariableSSIS - 包配置 - 环境变量
【发布时间】:2012-06-27 04:32:26
【问题描述】:

在我提出主要问题之前,我想澄清几件事。

如果您创建超过 1 个包(相同的源/目标),您可以只使用一个包配置文件吗?

->假设我使用相同的源/目标创建了 10 个包。我可以只创建一个 XML 包配置并使用该 xml 文件来编辑源和目标的路径吗?还是我需要为每个包创建 1 个包配置文件?

假设您有 50 个包要从开发服务器移动到生产服务器...在这种情况下,我可以在哪里存储包配置文件?

->我还没有为任何包创建包配置文件。

->我应该为所有 50 个包创建一个 XML 包配置文件吗?

->如果没有,我应该采取什么步骤?

->我读到环境变量在这种情况下很有用。

->我需要采取哪些步骤来创建环境变量?如果可能,ELI5。

->我读到它只允许存储一个属性...我是否必须为源、目标、凭据等创建多个环境变量?

-> 我阅读了this tutorial on Evn Var,但没有清楚地理解在这种情况下使用环境变量的过程和好处(超过 1 个包,将包从一个环境移动到另一个环境等)。

感谢您的帮助。尽量不要对这篇文章投反对票,因为我已经做了研究,但只是不理解它。

【问题讨论】:

    标签: sql-server tsql deployment ssis package


    【解决方案1】:

    1.每个包的包配置文件?

    You can reuse the same configuration file in multiple SSIS packages .
    But you should make sure that you have the same name and the number of connection
    manager and variables  defined in all the packages .If you have different names
    and numbers   then you have to create different config files .Creating different
    config files for each environment is a better option because you just need to change 
    the connection string to point to a particular sql server instance but not suitable
    for large number of ssis packages .
    

    2.环境变量

    In case you are going with Enviroment variable then you need to have same config
    file for all the SSIS packages .Environment variable should be present in all your 
    environments (test ,dev,prod).you need to have permission to create these variables.
    Package Configuration file per Package.The problem with environment variable is it 
    each variable can store only one property.So if more than one property needs to 
    stored then you need to have different variables for it .
    

    欲了解更多信息,请通过whitepaper

    【讨论】:

      猜你喜欢
      • 2015-10-05
      • 1970-01-01
      • 1970-01-01
      • 2018-04-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-08-13
      • 1970-01-01
      相关资源
      最近更新 更多