Difference between Triggers and Stored Procedure

Answer Posted / ghanshyam vrema

1. SP may Return a value but Trigger Not,
2. In SP you can pass parameter But in trigger you can't
3. we explicitly call the Sp when Trigger are implicitly
fired
4. you can write a sp in Trigger but in a Trigger you cant
write SP.
5. Trigger written on an individual Table or View where SP
is written for an Database

Is This Answer Correct ?    75 Yes 43 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is @@rowcount in sql?

729


What is transaction server distributed transaction?

721


How to sort query output in descending order in ms sql server?

745


Can we add a cpu to sql server?

701


What is the difference between mysql and sql server?

652






What are different replication agents and what's their purpose? : sql server replication

743


What is the dbcc command and why is it used?

759


How to create new tables with "create table" statements in ms sql server?

757


What is a recursive stored procedure in sql server?

772


What is format parameter in ssrs?

128


Does partitioning improve performance?

715


Tell me about builtinadministrator?

724


How will you decide the active and passive nodes?

787


What is triggers and its types?

725


What are the differences between decimal and float in ms sql server?

749