Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

DTEXEC command ignores /CONN arguments

$
0
0

I am running SQL Server 2008 and I am importing a csv file into a sql table - very simple. The package works fine in design mode. It also runs fine from the command line, but it ignores my arguments and just runs the design mode parameters. The only differences are

Design mode: Uses MyServer-4, and the csv file is in C:\temp instead of C:\temp2.

At the command line, it is supposed to use MyServer-5 and the file in C:\temp2 instead of C:\temp

The connection managers use a variable as an expression and run like their supposed to.

My command line is below and it is all on one ling line in a dos batch file:

dtexec /f "C:\Temp2\MyPackage.dtsx" /Decrypt MyPassword 
/CONN cm_sql_MyDB;"Data Source=MyServer-5;User ID=MyUser;Password=MyDBPassword;Initial Catalog=MyDB;Provider=SQLNCLI10.1;" 
/CONN cm_sql_MyAdminDB;"Data Source=MyServer-5;User ID=MyUser;Password=MyPassword;Initial Catalog=MyAdminDB;Provider=SQLNCLI10.1;" 
/CONN ffs_raw_IMPORT_CSV;"C:\Temp2\tblIMPORT_MyCsvFile.csv"

After running this command line, the table in MyServer-4 is filled with the contents of the csv file in C:\temp. I have a modified_on trigger in the destination table to prove it. I would appreciate any suggestions. Thank you.



Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>