thanks, i must find another way to show the error message.wowo......
bret DeleteThis @sybase.com wrote:
> You can generally get the error message template from
> master..sysmessages where error = @@error. However, there is no way to
> get any of the values (table name, page number, etc) that are
> substituted into the error message outside of the client program
> parsing the message it received (i.e. it has to be done outside of
> TSQL)
>
> There is an open feature request for a global variable that would
> contain the full text of the most recent error raised, CR 296395. >> Stay informed about: about error message