Solved

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

Posted on 2015-02-10
4
59 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 12

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 47

Expert Comment

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

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Help 27 45
How to create a unique rule restriction on a table for two fields 16 82
SQL view 2 27
Help in Bulk Insert 9 33
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

773 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