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
What is self contained scalar sub query?
Do you know clustered and non-clustered index?
How to specify the collation for a character data type in ms sql server?
Characterize join and name diverse sorts of joins?
What is an execution plan? When would you use it?
What is nolock hint in sql server 2008
how many type of indexing in database?
What are the different types of backups that exist?
What is cursors? And what are the different types of cursor?
Mention a few common trace flags used with sql server?
What is the default sql server instance name?
How to find index size for each index on table?
What is a fan-out query in SQL Azure?
What is triggers in ms sql server?
Can you insert NULL in unique column?