Solved

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

Posted on 2015-02-10
4
51 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
4 Comments
 
LVL 11

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:ScottPletcher
ScottPletcher 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 45

Expert Comment

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

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
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.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

706 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

20 Experts available now in Live!

Get 1:1 Help Now