Hello,
i'm working with T-SQL stored procedures and i am interested in obtaining the formated error message from sysmessages when a constraint violation occurs. i can obtain the error message using a select from sysmessages table based on the number of error i received through @@ERROR, but the string is not formated and looks like "Cannot insert NULL in table %.*ls, column %.*ls". Is there a method to get the complete string ? Thankx in advance!
i'm working with T-SQL stored procedures and i am interested in obtaining the formated error message from sysmessages when a constraint violation occurs. i can obtain the error message using a select from sysmessages table based on the number of error i received through @@ERROR, but the string is not formated and looks like "Cannot insert NULL in table %.*ls, column %.*ls". Is there a method to get the complete string ? Thankx in advance!