如何在 Windows Scheduler 中 运行 带密码的 SSIS 包?
How to run SSIS package with password in Windows Scheduler?
我有一个包含 ProtectionLevel=EncryptSensitiveWithPassword
的 SSIS 包,我想 运行 这个项目 .dtsx
来自 Windows 任务计划程序的文件(在 MS Windows 服务器 2012)。在任务计划程序中,尝试 运行...
"C:\Program Files (x86)\Microsoft SQL Server0\DTS\Binn\DTExec.exe"
添加了参数
/Decrypt <mypassword> C:/path/to/my/Visual Studio/package.dtsx
(不确定这是否是添加它们的正确语法)
查看一些 community docs,我认为需要使用 /Decrypt <mypassword>
arg,但不太确定 如何 到 "use" 它.在手动 运行 计划任务后,它似乎没有任何效果(例如,SSIS 包应该写入的 MSSQL 表仍然是空的(尽管 SSIS 项目 运行 在 运行宁在 Visual Studio))。
任何对 Windows 有更多经验的人都可以知道我在这里做错了什么吗?
首先需要在dtsx包文件路径前添加/FILE或/F:
dtexec /FILE "C:\path\to\my\Visual Studio\package.dtsx" /DECRYPT password
参考文献
我有一个包含 ProtectionLevel=EncryptSensitiveWithPassword
的 SSIS 包,我想 运行 这个项目 .dtsx
来自 Windows 任务计划程序的文件(在 MS Windows 服务器 2012)。在任务计划程序中,尝试 运行...
"C:\Program Files (x86)\Microsoft SQL Server0\DTS\Binn\DTExec.exe"
添加了参数
/Decrypt <mypassword> C:/path/to/my/Visual Studio/package.dtsx
(不确定这是否是添加它们的正确语法)
查看一些 community docs,我认为需要使用 /Decrypt <mypassword>
arg,但不太确定 如何 到 "use" 它.在手动 运行 计划任务后,它似乎没有任何效果(例如,SSIS 包应该写入的 MSSQL 表仍然是空的(尽管 SSIS 项目 运行 在 运行宁在 Visual Studio))。
任何对 Windows 有更多经验的人都可以知道我在这里做错了什么吗?
首先需要在dtsx包文件路径前添加/FILE或/F:
dtexec /FILE "C:\path\to\my\Visual Studio\package.dtsx" /DECRYPT password
参考文献