Force DTS Step to fail with SQL

  • Is there a way to force a DTS step to fail using a SQL statement, keyword, etc.?

    I have a stored proc. that returns codes based, including any SQL error codes that may occur.  Within the DTS step I would like to use something like:

    If @iVal <> 0

    Begin

        << force error >>>

    End

  • RAISERROR will usually do this.

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

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