🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: microsoft.public.sqlserver.server
Article #1

Re: Change Tracking 2008

#1
From: MummyChunk
Date: Thu, 17 Oct 2024 00:34
34 lines
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
Technical Details
Message-ID: <BqidnZsVo-ESxo36nZ2dnZfqnPadnZ2d@giganews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf8.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder9.news.weretis.net!border-4.nntp.ord.giganews.com!border-1.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-3.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
References: <ObPyT0wBKHA.1492@TK2MSFTNGP03.phx.gbl>

Show Full Headers
Complete Article Headers
Message-ID: <BqidnZsVo-ESxo36nZ2dnZfqnPadnZ2d@giganews.com>
Subject: Re: Change Tracking 2008
Date: Thu, 17 Oct 2024 00:34:23 +0000
From: mummycullen@gmail-dot-com.no-spam.invalid (MummyChunk)
References: <ObPyT0wBKHA.1492@TK2MSFTNGP03.phx.gbl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf8.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder9.news.weretis.net!border-4.nntp.ord.giganews.com!border-1.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-3.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 17 Oct 2024 00:34:23 +0000
Newsgroups: microsoft.public.sqlserver.server
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
User-Agent: newsSync 676287453
Lines: 34
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-6EDj+wRfC9VhHJDv9qOsMUdM4Bp/PXMHZRTT2mq1kAELypaPwY/yKSuaAEjSGGf6dUzV1ILub3xF2ya!YN18PRYk+rhSH6Qaz4ZZirO8F6L7xSq80NP9I8ElWxEB4nuxqoW4TT33R14x3ee/Rvlj6ri8tmwc!5w==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40