• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 269
  • Last Modified:

Audit Login In SQL Server 2005

How do i audit app logins in sql server 2005?  We want to do some clean up by tracking all the ids that are not being used but just occupying space.
0
Favorable
Asked:
Favorable
  • 2
  • 2
3 Solutions
 
strivoliCommented:
Use the profiler.
0
 
Anthony PerkinsCommented:
You can add a LOGIN TRIGGER and log every time some logs on.  This way over a period of time you can see which are used and disable the rest.
0
 
FavorableAuthor Commented:
do you add the login trigger to the master's database or create a different db for it?
0
 
Anthony PerkinsCommented:
It would probably would have helped if I had spelled it right; it is a Logon Trigger and it is considered a server TRIGGER.  See here for more info from SQL Server's BOL:
Logon Triggers
http://msdn.microsoft.com/en-us/library/bb326598(v=sql.100).aspx

Let me know if you need help creating one.
0
 
FavorableAuthor Commented:
thanks everyone
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now