SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 Transact-SQL (2012)
 Error Login in trigger
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

16 Posts

Posted - 12/09/2013 :  02:06:53  Show Profile  Reply with Quote
I have written a after insert,update,delete trigger which is working correctly. But there is an exception to the trigger which does not allow me to login any error into the error table if any exception occurred in any of the block.

I have tried using BEGIN TRY and BEGIN CATCH but still not able to log the errors.

Can any one show me an example of log error in an errorlog table using trigger..

Thank in advance.

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 12/09/2013 :  06:37:21  Show Profile  Reply with Quote
can you show your current code? whats the error you're facing with current code?

SQL Server MVP
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000