Solved

Transaction History in SQL SERVER Express

Posted on 2014-03-20
1
363 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

809 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