列出所有“执行 SQL 任务"的 SqlStatementSource在 SSIS 包中 [英] list SqlStatementSource of all "Execute SQL Task" in SSIS package

查看:32
本文介绍了列出所有“执行 SQL 任务"的 SqlStatementSource在 SSIS 包中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想列出 SSIS 包中所有执行 SQL 任务"的 SqlStatementSource.通过引用相关,它表明 SQLPSX 的 ssis 包可能有助于解决此任务.但是,当我尝试执行以下过程时:

I would like to list SqlStatementSource of all "Execute SQL Task" in SSIS package. By referencing relevant, it shows the ssis package of SQLPSX may be helpful to resolve this task. However, while I am trying to do the following procedure:

import-module SSIS
$package = Get-ISPackage -path "xxx.dtsx"

我的 powershell 返回以下错误消息:

My powershell returns an error message of:

无法删除包保护,错误为 0xC0014037"包已使用密码加密.未指定密码或密码不正确.".这发生在 CPackage::LoadFromXML 方法中."

"Failed to remove package protection with error 0xC0014037 "The package is encrypted with a password. The password was not specified, or is not correct.". This occurs in the CPackage::LoadFromXML method."

它显示我应该导入密码来解密包以检索数据,但是我应该把密码放在哪里?或者有没有其他方便的解决方案来解决这个问题.

it shows I should import password to decrypt the package to retrieve data, but where should I put the password? Or is there any other convenient solution for me to solve the issue.

最好的,大卫

推荐答案

你通常使用 DTEXEC 来运行这样的加密包:

you usually use DTEXEC to run an encrypted package like this:

DTExec.exe /FILE "C:\Package1.dtsx" /DECRYPT password@1.

/FILE 表示包在文件系统上.您可以将/SQL 用于 SQl Server 数据库上的包或/DT(如果它位于文件存储中)

/FILE means the package is on the file system. You would use /SQL to a package on the SQl Server database or /DT if it is on the file store

此外,如果您在 BIDS 上打开包裹,系统会提示您输入密码

Also if you open the package on BIDS, you should be prompted for a password

这篇关于列出所有“执行 SQL 任务"的 SqlStatementSource在 SSIS 包中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆