Solved

sql Audit table

Posted on 2016-09-25
3
104 Views
Last Modified: 2016-10-27
Hi , I need to create audit Log, any user add any records to table  what is old value and new value
For example
some one add employee Table

Audit Table

Empid employeeSalary Datechanged Createdby
1             20000               20/08/2015      ryan         <------ Old Records
1             30000               25/09/2015      Stephen  <----- New Records


After add new records

I need to do at least 50 tables.

Thanks
0
Comment
Question by:ukerandi
[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
3 Comments
 
LVL 34

Expert Comment

by:ste5an
ID: 41815000
Take a look at CDC.
0
 
LVL 29

Accepted Solution

by:
Pawan Kumar earned 500 total points
ID: 41815214
There are multiple options for auditing in SQL Server. They are

Server level

1. C2 Auditing.
2. Common Criteria compliance

 try and consider server level auditing. right click on the server and you will get these options. these options are really good since you have do it on larger number of table.

Also you just need to set this option and SQL will handle everything internally.

Enjoy !
Auditing.jpg
0
 
LVL 10

Author Closing Comment

by:ukerandi
ID: 41863159
thanks
0

Featured Post

Raise the IQ of Your IT Alerts

From IT major incidents to manufacturing line slowdowns, every business process generates insights that need to reach the people required to take action. You need a platform that integrates with your business tools to create fully enabled DevOps toolchains.

You need xMatters.

Question has a verified solution.

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

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how the fundamental information of how to create a table.

717 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