Solved

sql Audit table

Posted on 2016-09-25
3
48 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
3 Comments
 
LVL 32

Expert Comment

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

Accepted Solution

by:
Pawan Kumar Khowal 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.

760 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

18 Experts available now in Live!

Get 1:1 Help Now