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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:20:09+00:00 2026-05-27T00:20:09+00:00

I have 2 Triggers on a table : Tr1 , Tr2 . I didn’t

  • 0

I have 2 Triggers on a table : Tr1 , Tr2 .

I didn’t set order to any.

my question :

If I set to Tr1 sp_settriggerorder with “first” value.

Does it say implicitly that Tr2 will be the second one automatically?

Or should I also use sp_settriggerorder with “last” value to the Other Trigger ?

  • 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-27T00:20:09+00:00Added an answer on May 27, 2026 at 12:20 am

    As Martin Smith alludes in his comment. If you only have two triggers and one has been designated as first. Then the remaining trigger has to fire second. That is proper application of ordering when you have two triggers.

    For a very thorough explanation of trigger ordering read this article

    but in summary…

    • If you have 2 triggers you only need to designate a first OR a last to ensure a firing order.

    • If you have 3 triggers you must designate BOTH a first and a last to ensure firing order. The third trigger won’t have an order but since it’s the only one left it automatically gets fired 2nd.

    • If you have four or more triggers, you may designate a first and a last but the others will fire in an arbitrary order somewhere in the middle. You may also want to have a ‘pshrink’ on retainer if you regularly have four or more triggers on a table.

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

Sidebar

Related Questions

I have a couple of triggers on a table that I want to keep
I have a table which has 3 triggers of update (just for the scenario)...
I'm new to triggers . I have table like this CREATE TABLE [dbo].[Positions]( [Id]
Pretty general question regarding triggers in SQL server 2005. In what situations are table
I have two tables t1 and t2. i have created two triggers tr1 after
Have two triggers on a table. One trigger is executed when there is a
I have 2 databases and want to implement triggers on table update of database1
I have a table where each row has a button that triggers AJAX call.
I have a trigger that stores changes made in a separate table when a
I have a trigger to check for a single column in a table, when

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.