Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

How can i get the login attempt in sql server.
OR
I am working in Naviosion 2009r2 (my new company have Navision ,actuality I am a C#.Net developer ) and it is using Sql Server as database.Maximum number of users allowed in Navision is 54 (Actually Navision is using sql users for login), so when 55th user trying to login ,it blocks the new user with a message . So i need to write a trigger ,which executes when the user try to log in ,and in the trigger if some user idle time is grater than a specific time (say 1 hour ) then the idle user need to disconnect , so new user is allowed to login .

Thanks&Regards,
Aadyakumar.D.V
Posted
Updated 27-Aug-14 23:07pm
v2

1 solution

 
Share this answer
 
Comments
Aadyakumar 20-Aug-14 7:39am    
This is something different,failed login attempt coming after login attempt . but how can i trigger an event when some one attempting for login
uspatel 20-Aug-14 7:49am    
I think you can use Logon Trigger
http://msdn.microsoft.com/en-IN/library/bb326598.aspx

Some help can be get from
http://www.queryingsql.com/p/basics-of-triggers-in-sql-server.html#.U_SKJsWSzCQ

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