Solved

Looking for user audits in sql server 2005

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

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

747 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

13 Experts available now in Live!

Get 1:1 Help Now