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

  • Home
  • SEARCH
  • 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 3225534
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:21:01+00:00 2026-05-17T16:21:01+00:00

There is a table in my database containing 100 columns. I want to create

  • 0

There is a table in my database containing 100 columns. I want to create a trigger to audit the modification for every update operation.

What I can think is to create the update clause for all columns but they are all similar scripts. So is there any elegant way to do that?

  • 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-17T16:21:02+00:00Added an answer on May 17, 2026 at 4:21 pm

    Check Change Data Capture

    Update
    CDC provides tracking of all details of changes. Available since SQL Server 2008.

    (Change data capture is available only on the Enterprise, Developer, and Evaluation editions of SQL Server.
    Source: http://msdn.microsoft.com/en-us/library/bb522489.aspx)

    More lightweight solution is Change Tracking (Sync Framework), the one code4life mentioned before, available since SQL Server 2005.

    Update2:
    Related questions (with a lot of sublinks):

    • History tables pros, cons and gotchas – using triggers, sproc or at application level
      History tables pros, cons and gotchas – using triggers, sproc or at application level
    • Suggestions for implementing audit tables in SQL Server?
      Suggestions for implementing audit tables in SQL Server?
    • Are soft deletes a good idea?
      Are soft deletes a good idea?
    • How do I version my MS SQL database in SVN?
      Versioning SQL Server database
    • Thomas LaRock. SQL Server Audit: Magic without a Wizard
      http://www.simple-talk.com/sql/database-administration/sql-server-audit-magic-without-a-wizard/
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database table containing network information (servers, clusters etc). Is there any
I have a database representing something like a bookstore. There's a table containing the
In a MySQL (5.1) database table there is data that represents: how long a
I have a database table named 'student' in which there is one column named
is there a standard or best practice with database table names and fields in
Is there any application that will read a MySQL database table and generate a
For instance, there’s an integer column in a database table. Then in java model,
In our database there is a table which is created with ANSI_NULLS OFF .
There is a table employee in the database abc_db at abc@localhost(server) and there is
I have the following task: there are a simple table from mysql database: <html>

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.