简体   繁体   English

SSIS父级不需要密码,但子级软件包却需要密码-如何使它在SQL Server代理中运行?

[英]SSIS parent doesn't need password but child packages do - how do I get this to run in SQL server Agent?

I have a parent package that simply calls 4 child packages. 我有一个父包,它仅调用4个子包。 All of these (parent and child) packages have been saved with package passwords. 所有这些(父级和子级)软件包都已使用软件包密码保存。 However only 2 of these child packages have non-sql connections and hence you're only asked to put in these passwords when opening them in the IDE. 但是,这些子程序包中只有2个具有非sql连接,因此,仅在IDE中打开它们时才要求您输入这些密码。 I don't know why you're not asked for the parent one but that's another issue. 我不知道为什么不问你一个父母,但这是另一个问题。

However in SQL Server Agent (that runs this parent package) you're not asked to enter the package password (even though the package password is set in the parent package) because (I'm assuming for the same reason the IDE doesn't ask) 但是,在SQL Server代理(运行此父程序包)中,系统不会要求您输入程序包密码(即使程序包密码是在父程序包中设置的),因为(出于同样的原因,我假设IDE不会问)

So when the parent goes to call the child packages that do ask, they fail. 因此,当父级去调用确实询问的子级程序包时,它们将失败。 They're all stored in SQL Integration Services as Stored Packages and the password was entered when they were imported. 它们都作为存储包存储在SQL Integration Services中,并且在导入时输入了密码。

How do I get the child packages to work? 如何使子程序包正常工作? I've tried putting it on the Agent command line that runs the parent package as "/DE password" but that doesn't seem to be passed to the child package. 我尝试将其放在作为“ / DE password”运行父程序包的Agent命令行上,但似乎没有传递给子程序包。

I've also tried adding it to the SSISConfig db as a parent package variable but that also doesn't seem to work? 我也尝试过将它作为父包变量添加到SSISConfig db中,但这似乎也不起作用?

How do I get this to work? 我该如何工作?

You should be able to pass the package password in from the parent via a parent package variable. 您应该能够通过父程序包变量从父程序包中传入程序包密码。 Just add the variable value to the "Set Values" tab of the sql agent job. 只需将变量值添加到sql代理作业的“设置值”选项卡即可。

What is the protection level of the child package? 子程序包的保护级别是多少?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM