Difference between Triggers and Stored Procedure

Answer Posted / shilpa

triggers are fired automatically when any event ocours like
update ,delete ,insert on a table
whereas sp is set of sql statements its not related to
single table but its can have many sql satements that can
be used in many tables to update, delete and insert .

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different Authentication modes in SQL Server and how can you change authentication mode?

637


what happens on checkpoint? : Sql server database administration

503


How many types of database relationship in sql server?

561


What is inner join in sql server joins?

541


How many triggers you can have on a table?

531






What are 3 ways to get a count of the number of records in a table?

609


What is the difference between clustered index and primary key?

500


How to use clusters?

547


How do triggers work?

536


What are the difference between clustered and a non-clustered index?

584


Why use view instead of a table?

515


How can you check the version of sql server?

559


Does index slows down insert statements?

584


When cursors are useful?

574


What is difference between view and materialized view?

533