Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 Transact-SQL (2012)
 Error Login in trigger

Author  Topic 

amit120k
Starting Member

16 Posts

Posted - 2013-12-09 : 02:06:53
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.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

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

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -