尝试使用dtexec命令行实用程序执行SSIS包。
我的dtexec语法如下:
dtexec /FILE "C:\DirectLoads\RefEDWDirectLoads.dtsx" /Set \Package.Variables
[User::SourceDirectory].Properties[Value];"C\Test" /Set \Package.Variables
[User::EDWConnection].Properties[Value];"Data Source=hts0476;Initial
Catalog=EDW;Provider=SQLNCLI10.1;Integrated Security=SSPI;"
执行投掷错误时:
Argument ""\Package.Variables[User::EDWConnection].Properties[Value];Data
Source=hts0476;Initial Catalog=EDW;Provider=SQLNCLI10.1;Integrated Security=SSPI;""
for option "set" is not valid.
答案 0 :(得分:13)
是的,将此修复为
dtexec /FILE "C:\DirectLoads\RefEDWDirectLoads.dtsx" /Set \Package.Variables
[User::SourceDirectory].Properties[Value];"C\Test" /Set \Package.Variables
[User::EDWConnection].Properties[Value];\""Data Source=hts0476;Initial
Catalog=EDW;Provider=SQLNCLI10.1;Integrated Security=SSPI;"\"