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

Define self join?

635


What is surrogate key? : sql server analysis services, ssas

703


What is an execution plan? How would you view the execution plan?

553


how many layers of tcp/ip protocol combined of? : Sql server database administration

538


Define the one-to-one relationship while designing tables.

519






Explain a differential backup?

581


What are the properties of the transaction?

557


How can I create a new template for import ? : sql server management studio

606


How to convert a unicode strings to non-unicode strings?

573


What is implicit mode in sql server?

578


 Explain what is sql override for a source taLle in a mapping?

581


Why I am getting "the microsoft .net framework 2.0 in not installed" message?

521


How many files can a database contain in sql server?how many types of data files exists in sql server? How many of those files can exist for a single database?

652


What is cube dimension? : sql server analysis services, ssas

544


What is difference between createstatement and preparedstatement?

567