OleDbException错误代码

编程入门 行业动态 更新时间:2024-10-10 07:26:04
本文介绍了OleDbException错误代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当我的应用程序因重复键而抛出OleDbException时,我需要向用户显示一条友好的消息。我正在捕捉OleDbException然后查看它的ErrorCode,如果它是 - 2147467259 然后我显示自己的消息。我的问题是:

1-我能肯定吗以上错误代码仅在重复键时产生?

2-是否有字典将OleDbException错误代码与导致它们的案例联系起来?

谢谢

解决方案

亲爱的,

您可以从以下链接获取列表

support.microsoft/default。 aspx?scid = kb; EN-US; q168354& GSSNB = 1

问候,

Wasif Ahmad

I need to show the user a friendly message when my application throws an OleDbException because of duplicate keys. I am catching the OleDbException and then looking at its ErrorCode, if it was -2147467259 then I display my own message. My questions are:

1- Can I be sure that the above error code is only produced upon duplicate keys?

2- Is there a dictionary to relate OleDbException error codes to the cases causing them?

 

Thanks

解决方案

Dear,

 

You can get the list from the following link

 

support.microsoft/default.aspx?scid=kb;EN-US;q168354&GSSNB=1

 

Regards,

Wasif Ahmad

 

更多推荐

OleDbException错误代码

本文发布于:2023-11-28 03:47:36,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误代码   OleDbException

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!