Difference between Triggers and Stored Procedure

Answer Posted / avdhesh yadav

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

Is This Answer Correct ?    29 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is faster statement or preparedstatement?

618


Do you know the different ddl commands in sql?

670


How to recreate an existing index in ms sql server?

623


What is bookmark link in ssrs?

116


What is a recursive stored procedure in sql server?

663






How many database files are there in sql server 2000?what are they?

654


How do I view a script in sql server?

626


how can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role? : Sql server administration

650


What is parameterized reports in ssrs ?

111


What number sorts of privileges are accessible in sql?

666


How many databases Microsoft SQL server provides?

686


Do you know what are various aggregate functions that are available?

614


Can we use where clause with group by?

598


Explain about remote stored procedure?

671


Why normalization is used?

635