Trigger | Stored Procedure |
---|
Trigger is an act which is performed automatically before or after an event occurs. | Stored procedure is a set of functionality which is executed when it is explicitly invoked. |
It cannot accept parameters. | It can accept parameters. |
A trigger cannot return any value. | A stored procedure can return a value. |
It is executed automatically on some event. | It needs to be explicitly called. |
Triggers are used for insertion, update and deletion. | Stored procedures are often using independently in the database. |