Solved

Audit Login In SQL Server 2005

Posted on 2013-01-30
5
258 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 Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now