Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2002

    Unanswered: Stopping execution

    Quick question...
    I was under the impression that RAISERROR stopped excution in my DTS SQL Task, but it really just passes right over it.

    For example:
    RAISERROR('test error',19,1) WITH LOG
    CREATE TABLE delete_me (data int)

    Even though I rasie the error, the table still gets created. Any ideas on how I stop the task from going to the next line?

  2. #2
    Join Date
    Jul 2003
    San Antonio, TX
    I'd convert the script to a stored procedure and do a RETURN (1) from it.
    "The data in a record depends on the Key to the record, the Whole Key, and
    nothing but the Key, so help me Codd."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts