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

Posted on 2015-02-10
Medium Priority
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

Question by:Spikeuk30
LVL 14

Accepted Solution

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).
LVL 70

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.
LVL 54

Expert Comment

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

Featured Post

Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
In this article, we will see two different methods to recover deleted data. The first option will be using the transaction log to identify the operation and restore it in a specified section of the transaction log. The second option is simpler and c…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.

607 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