Re: After RAISERROR executes next line.
From: Thomas Kejser (thomas_at_kejser.org)
Date: 01/02/05
- Next message: Steve Kass: "Re: After RAISERROR executes next line."
- Previous message: I.P.: "Thanks..."
- In reply to: Prasanth: "After RAISERROR executes next line."
- Next in thread: Steve Kass: "Re: After RAISERROR executes next line."
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 2 Jan 2005 14:49:54 +0100
Hi Prasanth
If I understand you correctly you want to raise an exception so that the
print statement is NOT executed?. Is this correct?
Yours Sincerely
Thomas Kejser
"Prasanth" <Prasanth@discussions.microsoft.com> wrote in message
news:895177B6-342D-4F65-8D66-4177C56B8F6E@microsoft.com...
> Hello,
>
> I am trying to raise an error in MS SQL Server 2000 using the lines
> if x = 1
> raiserror('Error Message', 10, 1)
> print 'Next Line.'
> But, on execution, it shows the error message and goes to the next line.
> (prints 'Next Line')
> How do I set up the server so that after raising the error, the control
> goes
> to the called program.
>
> Thanks in advance,
> Prasanth
- Next message: Steve Kass: "Re: After RAISERROR executes next line."
- Previous message: I.P.: "Thanks..."
- In reply to: Prasanth: "After RAISERROR executes next line."
- Next in thread: Steve Kass: "Re: After RAISERROR executes next line."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|