Difference between writing SQL query and stored procedure ?

Answer Posted / tmp

the main advantages is Execution Plan Retention and Reuse (SP are compiled and their execution plan is cached and used again to when the same SP is executed again)
http://blog.sqlauthority.com/2007/04/13/sql-server-stored-procedures-advantages-and-best-advantage/

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you know about system database? : SQL Server Architecture

488


what stored procedure would you use to view lock information? : Sql server administration

578


How do you open a cluster administrator?

624


How to test values returned by a subquery with the in operator?

667


What is the contrast between sql and pl/sql?

620






what are the new features in SSRS?

104


What is the difference between online clustering and Offline clustering?

1913


What is a covered index?

518


What you can do to delete a table without the delete trigger firing?

519


How to create a trigger for insert only?

599


What are the results of running this script?

509


What are partitioned views?

574


What is format parameter in ssrs?

109


How to find Duplicate Records In table?

585


What are the purposes and advantages stored procedure?

495