How to handle SQL errors with severity 10
C#
4
Posts
2
Posters
0
Views
1
Watching
-
how to handle sql errors with severity less then 10 in C#:confused: .... From russia with love ....
try { ... } catch(SqlException ex) { ... } finally { ... }
-
try { ... } catch(SqlException ex) { ... } finally { ... }
-
when severity less then 10 it's an information message, so it's SqlError, and in not exists in SqlException i tried what u wrote and on error i don't go to catch block. .... From russia with love ....
Use @@ERROR in your SQL