Solved

Audit Login In SQL Server 2005

Posted on 2013-01-30
5
262 Views
Last Modified: 2013-02-13
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
Comment
Question by:Favorable
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 19

Assisted Solution

by:strivoli
strivoli earned 167 total points
ID: 38835008
Use the profiler.
0
 
LVL 75

Assisted Solution

by:Anthony Perkins
Anthony Perkins earned 333 total points
ID: 38835087
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
 

Author Comment

by:Favorable
ID: 38855323
do you add the login trigger to the master's database or create a different db for it?
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 333 total points
ID: 38856048
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
 

Author Closing Comment

by:Favorable
ID: 38885638
thanks everyone
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question