all groups > sql server programming > july 2005 >
You're in the

sql server programming

group:

SPs & Triggers!


SPs & Triggers! Arpan
7/11/2005 10:08:11 PM
sql server programming:
Do triggers get compiled & executed in the same way as stored
procedures i.e. after the first compilation & execution, do the
subsequent calls to the same trigger again recompile the trigger before
getting executed?

Thanks,

Arpan
Re: SPs & Triggers! Razvan Socol
7/11/2005 10:52:02 PM
For more informations about the recompilation of SP-s and triggers, see
the following article:
http://www.microsoft.com/technet/prodtechnol/sql/2005/recomp.mspx
It is focused on SQL Server 2005, but also contains many informations
about how things work in SQL Server 2000.

Razvan
Re: SPs & Triggers! Uri Dimant
7/12/2005 12:00:00 AM
Arpan
Triggers are called "hiden stored procedures". So they have the same compile
period as stored procedure.A query optimizer will evaluate whether or not
indexes can be used to create a more efficient execution plan.





[quoted text, click to view]

AddThis Social Bookmark Button