如何在SSIS中设置ERRORLEVEL?
我有一个运行 SSIS 作业的批处理文件。 我不知道SSIS作业是如何运行的,我接手了一个涉及它的项目。
批处理文件使用 %ERRORLEVEL% 来检测 SSIS 作业中发生的错误。 它也必须扩展以报告其他错误。
如何在 SSIS 中设置 ERRORLEVEL?
I have a batch file that runs an SSIS job. I have no knowledge of how the SSIS job runs, I took over a project involving it.
The batch file uses %ERRORLEVEL% to detect errors that occur within the SSIS job. It must be expanded to report other errors too.
How do I set the ERRORLEVEL in SSIS?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这似乎不可能。 根据 MSDN 文档,dtexec 只能返回从 0 开始的错误代码-6。
如果需要更详细的错误捕获,则需要存储和解析 dtexec 的输出。
This doesn't appear to be possible. Based on the MSDN documentation, dtexec can only return error codes from 0-6.
If you need more detailed error trapping, you will need to store and parse the output from dtexec.