Difference between Triggers and Stored Procedure

Answer Posted / vikas sinha

1)Stored Procedure can call.but trigger is automatically
invoked when action defined in trigger is done.

2)Stored procedure can not be inactive.but trigger can be
active and inactive.

3)Stored Procedure may or may not reture a value.but
trigger will not return a value.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is inner join? Explain with an example?

695


What is the difference between dropping a database and taking a database offline?

701


What is log shipping? Can we do logshipping with SQL Server 7.0 ?

580


How to write the storeprocedure with in the store procedure? and how can we write the store procedure with in a trigger vice versa? plz post me the exact answer?

2122


What is cursor in ms sql server?

567






What are the five characteristics of good data?

520


Explain the etl (extraction, transformation, and loading)?

567


Do you know the cursor optimization tips?

590


What does this statement do @@rowcount?

555


Tell me what is log shipping?

573


Explain the microsoft sql server delete command?

538


How to transfer a table from one schema to another?

560


Does union all remove duplicates?

614


How to create an index on a view?

588


What are the advantages of using stored procedures in sql server?

512