Click here to Skip to main content
15,913,941 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I want to create a trigger in sql server,which mails information about user logged in sql server in form of mail.(Trigger should send mail when a login is logged in)

Any help would be appreciated.
Posted
Comments
[no name] 21-Aug-12 12:44pm    
http://msdn.microsoft.com/en-us/library/bb326598.aspx

This should be easily solved with

The thing is that you need to define the trigger as a LOGON trigger and then send the mail from the trigger body.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900