Solved

Looking for user audits in sql server 2005

Posted on 2013-11-14
1
205 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
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 INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

691 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