Difference between Triggers and Stored Procedure

Answer Posted / gangi naidu.k

In case of sql queries,it is possible to compile one query
at a time,but incase of stored procedure we can compile
bunch of queries at a time and also it is need at first
time only,suppose we need modification on queries,after
modifications no need to compile again in case of stored
procedures,but in case of sql queries we have to compile
every time.Stored procedure contain queries in compiled
format so execution also fast and tome saving.One more
thing is in case of stored procedures serurity also more.

Is This Answer Correct ?    18 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a correlated sub-query? : Sql server database administration

484


How to update a field in SQL after ALTERING a row?

690


What is the standby server?

523


List types of tables in SQL Azure?

102


what is a deadlock? : Sql server database administration

503






What is a performance monitor?

559


How can a database be repaired?

569


What is bulkcopy in sql?

564


Can a database be shrunk with users active?

607


How display code or Text of Stored Procedure using Sql query in Sql Server ?

613


optimization techinques

2201


How to count groups returned with the group by clause in ms sql server?

563


What does it mean to invest in the index?

514


Explain trigger and its types?

618


why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it? : Sql server administration

560