Hmmm, one way I can think of is running a trace on the server and capturing the Audit Login and Audit Logout events of the Security Audit event class...
If I come up with something else I will post it in here.
Set the Security Audit Level of the server to audit ALL authentication events. This will automatically record successful and failed login attempts in the SQL Server log.
Right-click the server in Ent Mgr, click the Security tab and set the Audit Level in the Security group box.
Bear in mind that this can obviously grow your SQL logs quite fast if you have a busy system with lots of connections.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.