Re: Why does this trigger recompile frequently?
From: David Portas (REMOVE_BEFORE_REPLYING_dportas_at_acm.org)
Date: 12/08/04
- Next message: David Portas: "Re: Getting an average .."
- Previous message: angela: "Re: Quick Update statement"
- In reply to: Geir V. Berglind: "Why does this trigger recompile frequently?"
- Messages sorted by: [ date ] [ thread ]
Date: 8 Dec 2004 02:22:12 -0800
Cursors in triggers are a really bad idea. Can't you move whatever
logic is contained in the Trasp002 proc into the trigger. That way you
should stand a better chance of getting a well-optimised query plan.
-- David Portas SQL Server MVP --
- Next message: David Portas: "Re: Getting an average .."
- Previous message: angela: "Re: Quick Update statement"
- In reply to: Geir V. Berglind: "Why does this trigger recompile frequently?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|