?
Solved

Looking for user audits in sql server 2005

Posted on 2013-11-14
1
Medium Priority
?
208 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 600 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

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…
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
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.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Suggested Courses

771 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