Call HandleError

  • Hi Gurus,

    I have a following code in ActiveX in a DTS Package (ActiveX Task)

    If Err.Number <> 0 Then

    Call HandleError ("Error ","DB: " & SQL)

    End If

    and I'm trying to convert it to VB.Net. I don't know how to convert it or where to find it in DTS Package HandleError routine.

    I would appreciate any help.

    Thanks

  • You can set the task result to failure and

    Dts.TaskResult = Dts.Results.Failure

    Then add Onerror event handler from the Event Handler tab in BIDS.

    This might be helpful info for you

    http://techyfreak.blogspot.com/2007/08/exception-handling-in-ssis-script-task.html

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply