Difference between Triggers and Stored Procedure

Answer Posted / thirupathi

1. Triggers are implicitly called by DB itself while SP has to be manually called by user.

2. SP can pass the parameters which is not a case with Triggers.

3. While creating a Trigger, triggering event n action has to be specified, which isn’t a case with SP.

4. A Trigger can call the specific SP in it but the reverse is not true.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a unique index be created on a column, which contains null?

717


How to check if stored procedure is running in sql server?

661


How to find the list of fixed hard drive and free space on server?

792


What is sub-query in sql server? Explain its properties.

823


List types of tables in SQL Azure?

120


How to generate create function script on an existing function?

796


Can group by be used without aggregate functions?

695


What is a trigger and its types?

740


Working with TLogs

1611


What can be used instead of trigger?

814


What are differences in between sql server 2012 and sql server 2016?

764


How to automatically create a log when an exception is being received into SQL Server?

947


What is federation member?

111


What is clr ddl trigger?

738


What is the template in sql?

739