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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:44:20+00:00 2026-05-23T11:44:20+00:00

This problem is one of the weirdest things I’ve ever seen. I’ve added a

  • 0

This problem is one of the weirdest things I’ve ever seen.

I’ve added a trigger to a table in our database. The server is SQL 2008. The trigger doesn’t do anything particularly tricky. Just changes a LastUpdated field in the table when certain fields are changed. It’s a "After Update" trigger.

There is a large C++ legacy app that runs all kind of huge queries against this database. Somehow (I’ve got absolutely no idea how) it is deleting this trigger. It doesn’t delete any other triggers and I’m certain that it’s not explicitly dropping the trigger or table. The developers of this app don’t even know anything about my triggers.

How is this possible?

I’ve tried running a trace using SQL Server Profiler and I’ve gone through each command that it’s sending and run them using SQL Management Studio but my trigger is not affected. It only seems to happen when I run the app.

Update

I just realised that if I change the name of the trigger then it doesn’t get deleted. Furthermore if I modify the trigger so it doesn’t do anything at all then it still gets deleted. From this I can only guess that the other devs are explicitly deleting it but I’ve searched the trace for the trigger name and it’s not there. I’ll hassle them and see what they say. Thanks for the suggestions.

Update 2

The other devs reckon that they are not deleting it explicitly. It doesn’t exist in sys.objects or sys.triggers so it’s not a glitch with SSMS. So confused 🙁 Guess I’ll just rename it and hope for the best? Can’t think of anything else to try. A few comments below have asked if the trigger is being deleted or just disabled or not working. As I stated, it’s being deleted completely. Also, the problem is not related to the actual contents of the trigger. As I stated, it I remove the contents and replace with some extremely simple code that doesn’t do anything then it is still deleted.

  • 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-23T11:44:21+00:00Added an answer on May 23, 2026 at 11:44 am

    Thoughts:

    • To delete a trigger requires ALTER permission = shouldn’t be used by an app
    • Triggers can be disabled with ALTER TABLE
    • Triggers can be confused by testing for @@ROWCOUNT at the beginning to trap dummy updates etc
    • Is the trigger coded for single rows only and appears not to run
    • Does the trigger exists in sys.objects/sys.triggers: don’t rely on Object Explorer in SSMS
    • A trigger can be deleted if the table is dropped and re-created
    • A trigger won’t fire for TRUNCATE TABLE
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a problem one of our developers brought to me. He stumbled across
We are currently using JDeveloper to build our production EARs. One problem with this
So i'm having this problem. I have two tables (Oracle), one is called Destination
My problem is this one, I am using Sharepoint 2010, I have a form
I am having a problem like this one: http://svn.haxx.se/tsvnusers/archive-2008-07/1051.shtml Except that the app is
I'm skinning scrollbar in my flex app and got one problem. This white square
This is my problem, I have one textbox, one button and one label. Everything
From this post . One obvious problem is scalability/performance. What are the other problems
The problem is this, I include a script, it uses another one, but what
This one seems to be a simple problem, but I can't make it work

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.