SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
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  

amit120k
Starting Member

India
14 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.

visakh16
Very Important crosS Applying yaK Herder

India
52323 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
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
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.05 seconds. Powered By: Snitz Forums 2000