Solved

Audit Login In SQL Server 2005

Posted on 2013-01-30
5
261 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
  • 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

Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Moving a large MS Sql Database 5 51
find SQL job run average duration 24 53
Find unused columns in a table 12 67
Split string into 3 separate fields 5 18
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
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

680 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