Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parsing error message when constraint fails
Message
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01456345
Message ID:
01456349
Views:
29
>Hi,
>
>I am trying to figure a way to parse an error message when a database constraint fails. The purpose is to make the error message more readable by an average user. I noticed that error message has a section 'constraint "Name_Of_Constraint'. My question is, can I rely that the syntax of error will always have the word 'constraint' before the name of the constraint in double quotes?

If this is the same error, the error message is always going to be the same.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform