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 213377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:16:22+00:00 2026-05-11T18:16:22+00:00

One of my database fields in a table is getting modified by some piece

  • 0

One of my database fields in a table is getting modified by some piece of code. I just can’t figure out where!

So, I was wondering if there’s a way I can find out.

I’m using SQL 2008. Can Profiler be used to find out if a particular field is getting updated? How?

What about a Trigger? If using a trigger (eg. on UPDATE) can you determine what code called it? How can the trigger ‘notify me’ of this? Email/file?

  • 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-11T18:16:22+00:00Added an answer on May 11, 2026 at 6:16 pm

    Yes, an “AFTER UPDATE” trigger on that particular table and field might give you some clues as to when and why the field gets changed.

    From Books Online:

    CREATE TRIGGER reminder
    ON Person.Address
    AFTER UPDATE 
    AS 
      IF ( UPDATE (StateProvinceID) OR UPDATE (PostalCode) )
      BEGIN
        RAISERROR (50009, 16, 10)
      END;
    GO
    

    A trigger can execute basically any T-SQL code – if you have database mail set up correctly, it could send you an e-mail, yes. Or it can write an audit entry into another table or something like that.

    EDIT: If you need to find out which statements updated your column, you might be actually better off running a trace on the server, limited to that specific table, and just trace what’s happening there. I don’t think a trigger can give you that information (which code caused the update to happen).

    Marc

    • 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 and one of the fields (not the primary key)
When I insert just a few fields to a table in a legacy database
One of the core fields present on several of my app's major database tables
I need a database where one (or more) fields behave like a wiki. I
I have a Oracle database and one of the fields is a date range
I have a mysql database which as one of the fields contains a html
What is the SQL command to copy a table from one database to another
Our production database needs daily index defragmentation on one of its tables. The table
I have a simple little table (just 8 fields) an hour ago I rebuilt
At my company we have a database with one table being so big that

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.