adspace


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

List out the different types of locks available in sql server?

1060


What is clustered index

1101


What is the difference between for xml raw and for xml auto?

1130


How to remove duplicate rows from table except one?

1098


what is spatial nonclustered index

1070


What is temporary table in sql server? Why we use temp table?

1031


What is sql or structured query language?

1239


explain different types of backups avaialabe in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

1140


How efficient you are in oracle and SQL server?

1270


Disadvantages of the indexes?

1235


Explain “row_number()” in sql server with an example?

1089


What is a coalesce function?

1295


What is acid mean in sql server?

1260


You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

1225


How do I find query history in sql server?

1040