T-SQL Tuesday #106 – Trigger Headaches or Happiness

·

tsqltuesdaySince I took over the T-SQL Tuesday a few months ago, I decided I ought to host again. Especially since I’ve done it twice, but Wayne Sheffield got his third spot last month. Gotta keep up with Mr. Sheffield.

Triggers, for fun and frustration

I’ve been working with SQL Server and T-SQL a long time, and across many jobs, I think I’ve ended up using triggers in 0.01% of my tables or less. They can be a useful and helpful construct, but they can also be problematic and difficult, especially in the age of changing business models and rules.

Since I’ve found triggers to be both helpful and hurtful, I decided to ask you to write about an experience you’ve had with triggers. Either good or bad, but let me know this month what stands out in your mind.

The Rules

As always, the rules for this month are simple.

  • Write and publish a post on September 11, 2018, UTC time.
  • Include the T-SQL Tuesday logo (you can grab this above) and link your post back to this invitation.
  • Leave a comment/pingback on this post for me to use to include you in the roundup
  • Have fun.

Comments

37 responses to “T-SQL Tuesday #106 – Trigger Headaches or Happiness”

  1. […] TSQL Tuesday today! If you’re not familiar, TSQL Tuesday is a monthly blogging event where a Microsoft Data […]

    Like

  2. […] about triggers. I’m not sure whether Steve Jones (@way0utwest) knew this when he decided on this month’s T-SQL Tuesday topic, but either way, it’s been a long time and triggers are worth talking […]

    Like

  3. […] Triggers are both a useful tool with a specific niche… and the devil. Thank you Steve Jones for hosting this week’s topic on triggers! […]

    Like

  4. jonshaulis Avatar

    Fun topic to think about this month, thank you Steve!

    T-SQL Tuesday #106 Trigger headaches or happiness?

    Like

  5. […] post is a response to this month’s T-SQL Tuesday #106 prompt by Steve Jones.  T-SQL Tuesday is a way for the SQL Server community to share ideas about […]

    Like

  6. […] TSQL Tuesday is around again! This monthly blog party started by Adam Machanic ( blog | twitter ) is still going strong. This month we have Steve Jones ( blog | twitter ) and the topic is all to do with Triggers! […]

    Like

  7. […] This month’s T-SQL Tuesday is being hosted by Steve Jones, who has asked for blog posts today on experiences we have had with triggers, good or bad. […]

    Like

  8. TSQL Tuesday #106: Triggers and the Spiral To Oblivion – SQL Undercover Avatar

    […] month’s invitation comes from Steve Jones and he’s asking us to write about triggers and our experiences of […]

    Like

  9. What happens in a trigger stays in the transaction: T-SQL Tuesday #106 | SQL Studies Avatar

    […] for T-SQL Tuesday, is Steve Jones (b/t). His topic is Trigger Headaches or Happiness. His invite seemed to invite a story, so here’s mine. […]

    Like

  10. The Helpful Triggers | Voice of the DBA Avatar

    […] is the day for T-SQL Tuesday #106 entries. I’m the host this time, which means that I’ll have a busy week trying to […]

    Like

  11. paschott Avatar

    Fun topic that’s near and dear to all of us. I decided to write about “disabling” triggers.
    https://schottsql.wordpress.com/2018/09/11/disabling-triggers-without-alters/

    Like

  12. […] is a response to T-SQL Tuesday #106, Trigger Headaches or Happiness, by Steve […]

    Like

  13. […] T-SQL Tuesday subject for September, chosen by Steve Jones (b|t), is to write about an experience I had with triggers. I decided to apply a very loose interpretation of his assignment and write more about triggers in […]

    Like

  14. […] Here is my entry for this month’s T-SQL Tuesday. […]

    Like

  15. T-SQL Tuesday 106: 5 Things Not to Do With Triggers – nate_the_dba Avatar

    […] This month’s invite comes once again from our benevolent overlord* community pillar Steve Jones, head of SQLServerCentral.com! If you haven’t been there, stop reading immediately and go check out the helpful forums and ‘Stairways’ articles. Some truly excellent content to be had. […]

    Like

  16. natethedba Avatar

    I love it when a postback works the first time. =D

    Like

    1. natethedba Avatar

      Or pingback.. whatever. It’s bedtime. Thanks Steve!

      Like

  17. Matthew McGiffen Avatar
    Matthew McGiffen

    Hopefully I’m in just under the wire – I believe it’s still Tuesday somewhere!

    T-SQL Tuesday #106 – The Trouble with Triggers

    Like

  18. The Trigger Roundup–T-SQL Tuesday #106 | Voice of the DBA Avatar

    […] month was my turn to host T-SQL Tuesday. I chose Trigger Headaches or Happiness as the topic, and I am glad that there have been quite a few […]

    Like