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 mapping schema?

776


How to create a new schema in a database?

764


How to list all objects in a given schema?

746


What happens if you delete a table that is used by a view?

764


What is data file in computer?

707


What is policy based management (pbm)? : sql server database administration

744


What is meant by indexing files?

789


What is data source object?

721


What are indexers?

814


What functions can a view be used to performed?

808


How to convert a numeric expression from one data type to another?

701


What is the native system stored procedure to execute a command against all databases?

724


Call by value and call by reference in procedure and function, with NOCOPY.

1055


What is the log shipping?

757


Explain the rules for designing files and file groups in sql server?

720