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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capture errors inside triggers to avoid displ in the application?

Status
Not open for further replies.

marcarls

Programmer
Feb 7, 2002
40
SE
Hi

I'm writing triggers to audit changes made by users through our application that we develop. When something goes wrong in the trigger I do not want the trigger to throw back the error to the application, instead I want to log the occured error in a file or database table.
Does anyone have any tip for me? The important thing is that the error is not reported back to the application because then a "ugly" message is shown to the user who will get confused and our support will get unnessicary much job to do.

I am kind of new to SQL Server, and would be greatful for any tip.

Regards Maria
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top