这是我尝试在 SQL Management Studio 中运行它时使用的代码。
EXEC xp_cmdshell 'dtexec /FILE "C:\Users\luka.milutinovic\Documents\Visual Studio 2008\Projects\SSISDemo\SSISDemo\SSISDemo\Package1.dtsx" /CONNECTION "DUTOIT-PC\SQLSERVER2008R2.SSIS.sa";"\ "数据源=DUTOIT-PC\SQLSERVER2008R2;用户 ID=sa;初始目录=SSIS;提供者=SQLNCLI10.1;持久安全信息=True;自动翻译=False;应用程序名称=SSIS-Package1-{6B84DB73-E7A7-4227 -9072-2AEB870E60A9}DUTOIT-PC\SQLSERVER2008R2.SSIS.sa;\"" /CONNECTION LogFile;"C:\Users\luka.milutinovic\Documents\Visual Studio 2008\Projects\SSISDemo\LogFile" /CONNECTION Middle;"C :\Users\luka.milutinovic\Documents\Visual Studio 2008\Projects\SSISDemo\Person_Middle_12.csv" /CONNECTION Old;"C:\Users\luka.milutinovic\Documents\Visual Studio 2008\Projects\SSISDemo\Person_Old_12.csv" /连接年轻;”C:\Users\luka.milutinovic\Documents\Visual Studio 2008\Projects\SSISDemo\Person_Young_12.csv" /CHECKPOINTING OFF /REPORTING EW /LOGGER "{0A039101-ACC1-4E06-943F-279948323883}";LogFile '