Solved

Looking for user audits in sql server 2005

Posted on 2013-11-14
1
204 Views
Last Modified: 2014-04-22
Hello Folks.

I'm looking for user activity audit tables/views in Sql server 2005.
Do they already exist or do i have to custom create them?
On my server, I have already configured security to do login auditing.
Where does that data go to?

Thanks in advance for your help.
0
Comment
Question by:Bob_ET
[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
1 Comment
 
LVL 35

Accepted Solution

by:
David Todd earned 200 total points
ID: 39650281
Hi,

There are ways of looking at the transaction log, but that is fairly deep. If your application needs this on a fairly regular basis, I'd suggest that each table needs some of the following:
LastChangedBy (the userID/UserName), LastChangedDateTime (use the datetime, in SQL 2008R2 and above you have a few more types to choose from), timestamp (not a datetime, but a unique serial number in the database)

And yes, it can bloat a table somewhat to have these three columns as the last three or so in each and every table. But you can tell who made the last insert/update on that row with minimal effort.

HTH
  David
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

737 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