SQL Logon/Logoff Auditing/Trigger?
Posted on 2014-12-01
Hello, I need some help coming up with the best method for checking user activity on our SQL Server. I know I can enable server audits and such but I need a method that gives me all the information I want and does not hurt performance.
I don't need to audit select statements but I just need to know, what account logged in, what database they logged into, when they logged in and possibly when they logged out. Other stuff like the hostname, what program they were using is helpful but not required. My main target is trying to get the database they accessed.
Do any of you have a good procedure/trigger for this or is there a good way to configure the audit profiles? I did some research but was a bit fuzzy with the built in SQL stuff.