将退出代码从vb.net应用程序发送到SSIS包 [英] Send exit code from vb.net application to SSIS package

查看:83
本文介绍了将退出代码从vb.net应用程序发送到SSIS包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我编写了一个vb.net控制台应用程序,并在退出应用程序时出现错误代码。这个控制台应用程序已经实现到一个ssis包中,我想知道是否有任何方法可以将退出代码从应用程序发送到ssis。



谢谢

Hi All,

I have written a vb.net console application and have error codes on exit of the application. This console application has been implemented into an ssis package and I would like to know if there is any way to send the exit code from the application to ssis.

thanks

推荐答案

将默认情况下 Sub Main 更改为函数Main()As Integer



Change the Sub Main you get by default to Function Main() As Integer:

Module Module1

    Function Main() As Integer
        ' Define something to hold your exit code
        Dim myExitCode As Integer

        .
        ' Set your exit code somewhere
        .

        ' This returns your exit code
        Return myExitCode
    End Function

End Module


这篇关于将退出代码从vb.net应用程序发送到SSIS包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆