Raise Error failing sql agent job

  • how can i avoid sql job to fail when i am using raise error in sql agent job

    i am using simple raise error but as soon as it raises error ,sql job also fails...,is there any way i can avoid sql job failure after error is raised?

    if exists

    (select * from name)

    Begin

    RAISERROR ('Issue', -- Message text.

    16, -- Severity.

    1 -- State.

    )

  • i got that fixed by try catch

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

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