dtexec error - setting multiple variables

Sreedhar picture Sreedhar · Mar 8, 2012 · Viewed 13.7k times · Source

Am trying to execute SSIS package with dtexec command line utility.

my syntax for dtexec is as follows:

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;"

when executed its throwing error:

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.

Answer

Sreedhar picture Sreedhar · Mar 8, 2012

Yes got this fixed as

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;"\"