Thread View: microsoft.public.sqlserver.server
1 messages
1 total messages
Started by MummyChunk
Thu, 17 Oct 2024 00:34
Re: Change Tracking 2008
Author: MummyChunk
Date: Thu, 17 Oct 2024 00:34
Date: Thu, 17 Oct 2024 00:34
34 lines
2867 bytes
2867 bytes
> David C wrote: > We are using SQL 2008. I have been looking at BOL on Change Tracking but I'm > not sure it does everything I want. I would like to be able to identify the > user that made the change/delete automatically, but I didn't find anything. > Does anyone know where I can find out more about Change Tracking in SQL > Server 2008 or if there is a way to track who made the change? Thanks. > > David Change Tracking in SQL Server 2008 is a lightweight feature that tracks changes made to data in a table but doesn't inherently track the user who made the changes. To identify the user who made changes, additional mechanisms such as triggers or custom logging need to be implemented. Triggers can be created on tables to insert records into an audit table, capturing the user ID and type of change made (INSERT, UPDATE, DELETE). Custom logging within application code can also be used to record the user ID along with changes made to the data. Although more resource-intensive, Change Data Capture (CDC) provides more detailed information, including the user who made the change. However, it might be overkill if only basic change tracking is needed. This is a response to the post seen at: http://www.jlaforums.com/viewtopic.php?p=22338399#22338399
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads