Click here to Skip to main content
15,885,068 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

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

VB
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900