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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | 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
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

amit120k
Starting Member

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

visakh16
Very Important crosS Applying yaK Herder

India
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
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next 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.23 seconds. Powered By: Snitz Forums 2000