Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 731651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:03:05+00:00 2026-05-14T07:03:05+00:00

Before I delve into the abyss of Microsoft documentation any deeper, I’d like to

  • 0

Before I delve into the abyss of Microsoft documentation any deeper, I’d like to know if someone experienced with Change Data Capture and Change Tracking know if one or both of these can be used to replace the traditional …

“Audit trail table copy of the ‘real
table’ (all of the fields of the original table,
plus date/time, user ID, and DML
action field) inserted into by
Triggers”

… setup for a database table audit trail, where the trigger populates the audit trail table (which is all manual work).

The MSDN overview documentation explains at a high level what Change Data Capture and Change Tracking are, but it isn’t clear enough to me, and doesn’t state outright, that these tools can be used to replace the traditional audit trail tables we’ve made so often.

Can someone with any experience using Change Data Capture and Change Tracking save me a lot of time, or confirm that I am spending time looking at the right tool? The critical part of our audit trail is capturing all changes to a table’s fields (on INSERT, UPDATE, DELETE), when it happened, and who did it. These changes are commonly provided to an end user chronologically via an audit trail report. Which is another question … Change Data Capture or Change Tracking is the solution, I’d assume that this data can be queried just like data from a normal table?

EDIT: I need a permanent audit trail, irregardless of time. I see that Change Data Capture has to do with the transaction logs, so this sounds finite to me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T07:03:05+00:00Added an answer on May 14, 2026 at 7:03 am

    I think you still need audit tables in your circumstances. Looking in BOL it appears that a cleanup job is automatically created and ascheduled that runs every day at 2 am. From BOL:

    The cleanup job runs daily at 2 A.M.
    It retains change table entries for
    4320 minutes or 3 days, removing a
    maximum of 5000 entries with a single
    delete statement.

    That sounds like it definetely doesn’t do what you want. I can’t think that would do what anyone who audits tables woudl want. It also appears that it would be difficult if not impossible to add any fields not in the data table to the audit log other than it’s own five default fields (I couldn’t find what they were.) It also appears that the data would not be very useful to query or to use to rollback a specific bad change. OR maybe I just don;t understand the process because BOL is pretty poorly written on this subject, it certainly didn’t answer any of the concerns I would have in replacing my auditing with this apparently poorly thought out process.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Before I delve into it, I'm very new to Android and I have just
Before I delve into some serious lowlevel debugging, I was just wondering if there
Before saying anything I have to say that, albeit I'm an experienced programmer in
Before anyone has a chance: Yes, i know it's a bad idea. Please, don't
Before Anything: $.getJSON back button showing JSON return data not the page did not
Before variable-length arrays were supported, I would dynamically allocate them like this: int foo(size_t
Before with jQuery I could do a chained animation with a delay between like
Before trying to query the AD server I would like to check if it
I am about to delve into kernel land. My question relates to the programming
Before I start, I know there is this post and it doesn't answer my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.