you may want to check in forum183. but the sql error isn't so much about severity in .net. all exceptions are equal. the SqlException is the base exception to all SqlClient exceptions. you can access the ErrorCode and Errors collection to determine the exact sql error.
Thanks Jason, I have developers hard-coding there own "RAISERROR" statements with their own exception messages, but they all put severity 16 so I wanted to watch for that severity level and do 'x' programming based on that level...sounds like I can't do that unless I put some kind of distingusing value in the exception message...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.