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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:55:29+00:00 2026-06-10T19:55:29+00:00

I have lost a trigger. I know it is active, since when I try

  • 0

I have lost a trigger. I know it is active, since when I try to change a field, it restores its value back, and from the SQL Server Management Studio I can see that when I execute the query, an extra one is executing (the trigger one).

I tried SELECT * FROM sys.triggers WHERE 1 = 1 but it does not return anything. Also, I know the name of the trigger, but when I try to ALTERit returns an error saying that

the name of the object ‘myTrigger’ is not valid.

And if I try to DROP TRIGGER myTrigger ON DATABASE

Trigger ‘myTrigger’ can not be removed because it does not exists, or the user has not enough priviledges.

  • 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-06-10T19:55:30+00:00Added an answer on June 10, 2026 at 7:55 pm

    Ok, as Lieven said, I was not querying the right database… This is odd, since the query had the DB defined on it

    ALTER TRIGGER myTrigger
    ON [DB].[dbo].[table]
    

    But the upper select of the SQL Server Management Studio was pointing to other DB…


    Edit:
    I have been investigating a little bit (trying to clean my image), and I found a weird behaviour on SQL Server Management Studio.
    If you execute a query like:

    UPDATE [DB].[dbo].[table] SET column = 'value' WHERE column2 = 'foo'
    

    It executes the query in the right DB. No matter what DB is pointed by the upper select.

    But, if you try to do the same, with a trigger, you must have the upper select pointing the right DB, or you will face the same problems I had.

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

Sidebar

Related Questions

I'm sort of lost on this. I have an application that is reading from
I have lost more time than I care to relate from testing worthless builds
I have lost somehow connection to the world of web programming six years back
I have lost the debug panel/toolbar (with the yellow curly arrow step tools) in
I have lost my private key for iPhone Distribution Certificate during an OS upgrade.
My question is deceptively simple, but I have lost several hours of study trying
I have a sign in form and a lost password form. Currently in my
We have found that with our memcache some keys tend to be lost. To
I am lost. I have localhost database (PostgreSQL) and I have to add port
I have two git repositories: report.git (Master on remote location) cloned.git (Local) I lost

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.