Message
From
22/03/2010 20:08:34
 
 
To
Todo
General information
Fórum:
Microsoft SQL Server
Category:
Título:
Parsing error message when constraint fails
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
ID da thread:
01456345
ID da mensagem:
01456345
Views:
82
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?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Responder
Mapa
View