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

How to create an inline table-valued function?

714


Which trace flags are enabled in sql server?

671


What is auditing in sql server?

685


How do I open a .db file?

731


What is update locks?

660






what is the information that can be stored inside a bit column? : Sql server database administration

706


What is identity?

761


How to loop through the result set with @@fetch_status?

829


What are distributed partitioned views?

813


What do you understand by SQL*Net?

782


How to set the current database in ms sql server?

719


How can we solve concurrency problems?

776


Can sub report data source be different from that of the parent report?

121


What is sql service broker?

736


How to loop through result set objects using odbc_fetch_row()?

645