?
Solved

SQL Server 2008 STD - log changes to a specific table.

Posted on 2015-02-10
4
Medium Priority
?
69 Views
Last Modified: 2015-02-18
Note the version of SQL is 2008 Std which doesn't have auditing or Table Change tracking etc.

I want to log all changes to a specific table.

From what I can tell as we have Standard edition -  its either SQL Profiler or Extended Events?

Profiler has a high overhead...

How can I use extended events to log all changes to a table, everything I am reading makes me think its for error logging?


Any examples would be appreciated :D


thanks!!!
0
Comment
Question by:Spikeuk30
[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
4 Comments
 
LVL 14

Accepted Solution

by:
Nakul Vachhrajani earned 1000 total points
ID: 40600407
Are DDL or DML triggers an option? If yes, depending upon the type of change you want to track, you can write DDL triggers (for structural changes) or DML triggers (for data related changes).
0
 
LVL 69

Assisted Solution

by:Scott Pletcher
Scott Pletcher earned 1000 total points
ID: 40600736
Yep, typically you would use table trigger(s) for that.  Extended events is not the way to log row changes.
0
 
LVL 51

Expert Comment

by:Vitor Montalvão
ID: 40605368
Triggers +1
You still have doubts on this?
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
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.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

762 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