Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to capture the sys error message

Status
Not open for further replies.

Roti

IS-IT--Management
Jun 5, 2001
6
0
0
HK
Hello,

I am trying to log down all errors happened in a batch job/SP. For example the error message : Cannot insert the value NULL into column 'PO_ID', table 'Training.dbo.PO'. I can easily refer this system message from the sysmessage table by the error code returned . However, the macro inside the message, like the column 'PO_ID' or 'Training.dbo.PO', are not available there. How can I get these macro as well?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top