Difference between Triggers and Stored Procedure

Answer Posted / pramod bansode

1> For executing Sp we have to call Stored Procedure. But in
case of Trigger it is call whenever there is an action taken
on table or column(Insert, Update ,Delete).
2> From SP we pass Values But from Trigger we cant.
3> stored procedure returns value but trigger cannot returns
value.
4> For SP we have to compile. for Trigger no need to compile.
5> we return SP in Trigger but Trigger can not be in SP.

Is This Answer Correct ?    18 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the syntax for encrypting a column in SQL Server?

551


How to turn off warning messages during php execution?

526


How to find the second highest salary of an employee?

587


How to create a dynamic cursor with the dynamic option?

548


What is set nocount on and what is set nocount off?

512






If you want to send some data from access database to sql server database. What are different component of ssis will you use?

503


What is a select query statement in ms sql server?

578


What is difference between rownum and rowid?

505


Explain few of the new features of sql server 2008 management studio

521


How to return the top 5 rows from a select query in ms sql server?

586


Do you know what is blocking?

536


What is the web service used for reporting services?

98


What is difference between group by and having?

559


What are the three different part of rdl file explain them?

170


How can a user-defined datatype be created?

538