March 1, 2011 at 6:35 am
GilaMonster (2/28/2011)
In SQL 2005 and above, the inserted and deleted tables are materialised from the row version store in TempDB, not the transaction log. Hence they do not cause log reads any longer.Disabled trigger = metadata retained, trigger not executed at all
Dropped trigger = metadata dropped, trigger completely removed.
Just curious and pardon my ignorance on the subject... that would seem to imply that extra reads are performed from TempDB. Is that what happens? Either way, do you have a good link on the subject? I'd like to read up on what happens behind the scenes with triggers.
Thanks, Gail.
--Jeff Moden
March 1, 2011 at 4:25 pm
Jeff Moden (3/1/2011)
that would seem to imply that extra reads are performed from TempDB. Is that what happens? Either way, do you have a good link on the subject? I'd like to read up on what happens behind the scenes with triggers. /
Yup, that's what happens. Additional reads and writes. SQL has to add the row versions during the change, then use the row version to materialise the inserted and deleted tables.
No link handy, please remind me next week (pm or post here), I'll dig through my stuff when I get home.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 2 posts - 16 through 16 (of 16 total)
You must be logged in to reply to this topic. Login to reply