如何为“无法插入重复的密钥错误"做出自定义错误消息? [英] How to make custom error message for Cannot insert duplicate key error?

查看:47
本文介绍了如何为“无法插入重复的密钥错误"做出自定义错误消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Azure SQL,我想发表更简短和客户友好的错误消息.如何使用Azure SQL?

I have Azure SQL and I would like to make more brief and customer friendly error messages. How to do for Azure SQL?

Kenny_I

推荐答案

您好,

Hello,

如果您正在寻找要创建自定义错误消息,请在以下URL上对该功能进行投票:

If you are looking to create custom error messages, please vote for this feature on the following URL:

https://feedback.azure.com/forums/217321-sql-database/suggestions/654161-enable-sys-messages

https://feedback.azure.com/forums/217321-sql-database/suggestions/654161-enable-sys-messages


也许您可以考虑实施try/catch并调用您自己的过程以显示自定义错误消息.


Maybe you may consider implement try/catch and call your own procedure to display custom error messages.


希望这会有所帮助.


Hope this helps.



问候



Regards,

Alberto Morillo
SQLCoffee.com

Alberto Morillo
SQLCoffee.com


这篇关于如何为“无法插入重复的密钥错误"做出自定义错误消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆