Solved

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

Posted on 2015-02-10
4
65 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 13

Accepted Solution

by:
Nakul Vachhrajani earned 250 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 250 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 50

Expert Comment

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

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

724 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