May 18, 2010

List of Database Engine Error Messages




All system and user-defined error messages in an instance of the Database Engine are contained in the sys.messages catalog view.

Here’s how to query this catalog view to list the Error Messages based on their severity

SELECT * FROM sys.messages  
WHERE language_id = 1033
ORDER BY severity desc

OUTPUT

Error Messages SQL Server

The error message describes the cause of the error whereas the severity indicates how serious the error is.You can read more on the different Level of Severities over here Database Engine Error Severities


Did you like this post?
kick it on DotNetKicks.com
subscribe via rss subscribe via e-mail
print this post follow me on twitter


About The Author

Suprotim Agarwal, ASP.NET Architecture MVP works as an Architect Consultant and provides consultancy on how to design and develop Web applications.

Suprotim is also the founder and primary contributor to DevCurry, DotNetCurry and SQLServerCurry. He has also written an EBook 51 Recipes using jQuery with ASP.NET Controls.

Follow him on twitter @suprotimagarwal

 
  Feedback:

comments

0 Responses to "List of Database Engine Error Messages"
 

Copyright © 2009-2014 All Rights Reserved for SQLServerCurry.com by Suprotim Agarwal | Terms and Conditions