Solved

Transaction History in SQL SERVER Express

Posted on 2014-03-20
1
361 Views
Last Modified: 2014-03-20
I need to keep Table log in a history table. Can you please suggest me I can get the record from SQL SERVER Log table ?

Or do I need to write trigger for every table and store the data for edit, insert and delete in history table ?

Its a ASP .NET application so I want to store data about the user did the modification and from the IP . Whats the best way to do this ?
0
Comment
Question by:Vikash p
1 Comment
 
LVL 39

Accepted Solution

by:
lcohan earned 500 total points
ID: 39943207
For DML yes - you would need to put triggers on INSERT/DELETE/UPDATE to generate the Audit(log) records you need to keep.

For DDL you can try use SQL Database DDL triggers meant for that:

http://technet.microsoft.com/en-us/library/ms190989(v=sql.105).aspx
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
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.

815 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

8 Experts available now in Live!

Get 1:1 Help Now