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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:47:39+00:00 2026-05-26T09:47:39+00:00

I have table1 which is being updated and inserted with data via sp’s .

  • 0

I have table1 which is being updated and inserted with data via sp’s.

the update is per Id of the row ( not bulk update) – I mean – Single update.

This table has Trigger Tg1 – which updates some fields in the same record that has been updated . ( after the record updated in the db – TG1 update some of her fields)

I DONT HAVE ACCESS to TG1 !.

This table has another trigger which ive build Tg2.
which archive the original inserted record via SELECT * FROM DELETED ... and insert to table Archive...

the problem is that Tg2 catches also the events for TG1 ! ( it inserting to the archive table 3 records insted of 1.

Question : Is there anyway (in TG2) to know that the Action came from Tg1 ? ( so i would be able to avoid those events – since i need only the events which came from my sp.)

How can i solve that ? ( i dont have access to tg1…)

  • 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-26T09:47:39+00:00Added an answer on May 26, 2026 at 9:47 am

    Why would you not want to archive the record as it finally exists in the table?

    However, you can set the trigger order on your trigger to be the first one using
    sp_settriggerorder. Lookup in Books online how to do that.

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

Sidebar

Related Questions

I have a Jtable on which I called the method table1.setAutoCreateRowSorter(true); . So this
I have a join in a oracle query which looks like: FROM eiv.table1 eiv.table2
I have a table which holds flight schedule data. Every schedule have an effective_from
I have two tables which get updated at almost the exact same time -
I have a MySQL table that's being updated very frequently. In essence, I'm trying
I have a database of events which gets updated every night. A single event
I have 3 tables which contain different types of data related to each other.
I am having a weird issue in ASP.NET MVC with objects not being updated
If I have a situation (which I do, but changing the situation is not
I have a parent/child relationship defined which, unfortunately, cannot be maintained via a foreign

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.