Solved

Audit Login In SQL Server 2005

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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

724 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