开发者

A Problem To Manage SqlExceptions in C#

开发者 https://www.devze.com 2023-02-22 00:38 出处:网络
I want to write a class to manage sqlexceptions. This class w开发者_如何学Pythonill display a message in my language for each sqlexception.

I want to write a class to manage sqlexceptions. This class w开发者_如何学Pythonill display a message in my language for each sqlexception.

But how can i gather all error codes or part of error codes that occur more than others?


You can get the information with the SQL Query SELECT * FROM sysmessages

More info and a list of error codes here: http://technet.microsoft.com/en-us/library/cc917589.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号