我正在尝试从批处理文件运行 SSIS 包,但它抛出了一个错误
要在 SQL Server Data Tools 之外运行 SSIS 包,您必须安装标准版的 Integration Services 或更高版本。
但在 Visual Studio 中,我可以成功执行。我在批处理文件中的代码
set DtexecFileLoc=C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\Dtexec.exe
::@echo Batch File Loc: %BatFileLoc%
@echo SSIS Package Location: %SSISPkgLoc%
echo.
@echo Please enter the variable values for which you want to refresh DEV environment.
set /p EffDate=Enter the Month-End EffectiveDate in MM/DD/YYYY format:%=%
@echo SSIS Package is going to run for EffectiveDate '%EffDate%' .
@echo If these variable values are not correct then close the window and re-run the batch file again.
@echo DO NOT CLOSE this window while the SSIS Package is running.
echo.
pause
"%DtexecFileLoc%" /File "%SSISPkgLoc%" /SET \Package.Variables[User::z_Dest_ServerName].Properties[Value];"%DestServer%" /SET \Package.Variables[User::Z_Dest_UserName].Properties[Value];"%DestUserName%" /SET \Package.Variables[User::Z_Dest_Password].Properties[Value];"%DestPassword%" /SET \Package.Variables[User::z_Email_Server].Properties[Value];"%EmailServer%" /SET \Package.Variables[User::z_Source_ServerName].Properties[Value];"%SourceServer%" /SET \Package.Variables[User::Z_Source_Username].Properties[Value];"%SourceUserName%" /SET \Package.Variables[User::Z_Source_Password].Properties[Value];"%SourcePassword%" /SET \Package.Variables[User::z_Email_Recipient].Properties[Value];"%EmailRecipient%" /SET \Package.Variables[User::y_EffectiveDate].Properties[Value];"%EffDate%" > "%SSISLogLoc%"
@echo SSIS Package execution is now complete, you can now close this window.
echo.
pause
这是我的环境配置
我已经尝试为可执行文件切换不同的路径,但在我的情况下它不起作用。这是我的日志这里是下面的错误消息下面的日志文件
适用于 32 位的 Microsoft (R) SQL Server 执行包实用程序版本 14.0.3026.27 版权所有 (C) 2017 Microsoft。版权所有。
错误:2019-12-11 15:47:30.29 代码:0xC000F427 来源:更新 ErrorList 描述:要在 SQL Server Data Tools 之外运行 SSIS 包,您必须安装标准版的 Integration Services 或更高版本。结束错误