Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Command line 从命令行运行SSIS包后如何检测退出代码?_Command Line_Ssis - Fatal编程技术网

Command line 从命令行运行SSIS包后如何检测退出代码?

Command line 从命令行运行SSIS包后如何检测退出代码?,command-line,ssis,Command Line,Ssis,我有一个从命令行运行的SSIS包。从命令行运行包之后,我想检查退出代码。如果退出代码导致错误。然后我想登录到一个文本文件。我可以登录到一个文本文件,但我无法检测错误。有人能帮忙吗 到目前为止,我有: C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn>dtexec.exe /f "T:\Development\.NET Projects\ReportingTool\DailyUpload_DEV\DailyUpload\Dail

我有一个从命令行运行的SSIS包。从命令行运行包之后,我想检查退出代码。如果退出代码导致错误。然后我想登录到一个文本文件。我可以登录到一个文本文件,但我无法检测错误。有人能帮忙吗

到目前为止,我有:

C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn>dtexec.exe /f "T:\Development\.NET Projects\ReportingTool\DailyUpload_DEV\DailyUpload\DailyUpload_Morr.dtsx" <This is where I need the IF to check the return code> ECHO HELLO>>\\tw2-dc02\users$\Akilburn\Documents\text.txt

我检查了错误的变量。如果错误级别1 ECHO HELLO>>\\tw2-dc02\users$\Akilburn\u MORR\Documents\text.txt

DTExec: The package execution returned DTSER_FAILURE (1).