DTS error handling for exec sql tasks

  • Hello,

    I am using an Exec SQL task in DTS that executes a procedure.  How can I force the Exec SQL task to complete successfully even if the stored procedure returns an error?  Is there another way to run a stored procedure inside of a DTS package that will allow me to ignore errors?  The procedure is just running and not writing anywhere, so I don't believe setting "max errors" in a transformation would work.

    Anyone have any ideas?  Any help would be greatly appreciated.

  • There is a setting called ForceExecutionResult that you can set so that the task always completes successfully.

     

    Aunt Kathi Data Platform MVP
    Author of Expert T-SQL Window Functions
    Simple-Talk Editor

  • Thanks Kathi.  Is ForceExecutionResult  a SSIS thing, or is it available in SQL 2000 DTS?  Everything I am finding on this property is based on 2005 SSIS?

    Thanks again for your response.

  • This is an SSIS thing. I kind of assumed that you were working in SSIS since this particular forum is for SQL 2005.

    Aunt Kathi Data Platform MVP
    Author of Expert T-SQL Window Functions
    Simple-Talk Editor

  • Yes, my fault.  I have probably posted this in the wrong forum.

     

  • No problem. You might try to post in the data warehousing/DTS forum.

    Aunt Kathi Data Platform MVP
    Author of Expert T-SQL Window Functions
    Simple-Talk Editor

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

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