That's because high sev errors are passed back to ADO.NET and it gives up on
trying to process more data from the TDS stream.
--
____________________________________
Bill Vaughn
MVP, hRD
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
"Apokrif" <(E-Mail Removed)> wrote in message
news:009201c36bff$fd3f1c30$(E-Mail Removed)...
> >Unless the severity is 10 or higher, the exception
> handler won't kick in.
> >You need to add a InfoMessage event handler to your code
> to trap the message
> >sent back from RAISERROR.
>
> Yes, I found OnInfoMessage event but I never get that
> message if raiserror with severity > 10 happened before
> exception with severity <10.
> I.e. I can't get info message from following T-SQL code:
> RAISERROR('error',16,1)
> RAISERROR('info',10,1)
>