Answered Capture sucsess/failure

  • Tuesday, March 06, 2012 7:57 PM
     
     

    Hi All,

    I have a sequence container that contains two execute SQL tasks and on data flow task. If this process fails, I want to log the details in a table. Any idea how to capture the success/failure of the sequence container? Also, is there a way we can capture the error as well? Please advise and thank in advance.

All Replies

  • Tuesday, March 06, 2012 7:59 PM
    Moderator
     
     Answered

    Use an Event handler for this sequence container. The error description is not often too helpful.

    A link to a blog post outlining how to achieve the desired: http://sqlblog.com/blogs/rushabh_mehta/archive/2008/04/24/gracefully-handing-task-error-in-ssis-package.aspx


    Arthur My Blog


    • Edited by ArthurZMVP, Moderator Tuesday, March 06, 2012 8:01 PM Needed to add the link
    • Marked As Answer by PeaceOut Wednesday, March 07, 2012 2:21 PM
    •  
  • Tuesday, March 06, 2012 8:02 PM
    Moderator
     
     
    And one more, perhaps better post to examine as a possible solution: http://www.simple-talk.com/sql/ssis/ssis-event-handlers-basics/

    Arthur My Blog

  • Tuesday, March 06, 2012 9:52 PM
    Moderator
     
     Answered
    The easiest thing to do is to connect the sequence container to an execute SQL task via a precedence constraint such that you can log whatever you want to a database.  You can have two; one for failure and one for success.

    Phil Brammer | http://www.ssistalk.com | Twitter: http://twitter.com/PhilBrammer

    • Marked As Answer by PeaceOut Wednesday, March 07, 2012 2:21 PM
    •