In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
Today, I would like to talk to you about how to use @ @ ERROR in mssql. Many people may not know much about it. In order to make you understand better, the editor has summarized the following for you. I hope you can get something from this article.
Mssql error log file location: C:\ Program Files\ Microsoft SQL Server\ MSSQL\ LOG use notepad to view @ @ ERROR return an integer 0 is the error information system table (master) USE master select * from sysmessages where error= stored in normal sysmessages error number can be queried the cause of the error can be thrown in the trigger RAISERROR (50009, 16, 10), where 50009 is the error number It can also be error message description 16 10 specific rows and columns can be customized or customized messages can be added to the sysmessages. USE master EXEC sp_addmessage 50001, 16, N'Percentage expects a value between 20 and 100. Please reexecute with a more appropriate value.','us_english',false,replace EXEC sp_addmessage 50001, 16, 'employee code not found', 'simplified Chinese', false,replace 50001 16 must first add us_english version, and then add 'simplified Chinese' replace, which means that if there is 50001 numbered information, it will be replaced by the new information
After reading the above, do you have any further understanding of how to use @ @ ERROR in mssql? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.