Differences between Stored Procedures and triggers

Differences between Stored Procedures and triggers ---


1. When you create a trigger you have to identify event and action of your trigger but when you create s.p you don't identify event and action 

2.Trigger is run automatically if the event is occured but s.p don't run automatically but you have to run it manually 

3. Within a trigger you can call specific s.p but within a sp you cannot call atrigger 

4.Trigger execute implicitly whereas store procedure execute via procedure call from another block. 

5.We can call a stored procedure from front end (.asp files, .aspx files, .ascx files etc.) but we can't call a trigger from these files. 

6. Stored procedure can take the input parameters, but we can't pass the parameters as an input to a trigger. 
Ebook Download
View all
Learn
View all