Is there a way to catch exact error message that SQL throws?
For example, the SQL throws this message:
Server: Msg 208, Level 16, State 1, Line 1
Invalid object name 'TBL_C'.
If I catch the @@Error and query master..sysmessages table I can get a general description:
208 16 0 Invalid object name '%.*ls'.
How do I capture exact error description - "Invalid object name 'TBL_C'."?
Thanks