如何在SSIS中设置ERRORLEVEL?

发布于 2024-07-16 07:09:41 字数 163 浏览 8 评论 0原文

我有一个运行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凉城凉梦凉人心 2024-07-23 07:09:42

这似乎不可能。 根据 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文