Difference between writing SQL query and stored procedure ?

Answer Posted / kshitij s. nirmaley

query and stored procedure do the same thing but the
difference is that a query should be compiled every time the
query is executed, while the stored procedure is in compiled
form when executed first time .If we use stored procedure
we can avoid recompilation of the query.

Is This Answer Correct ?    23 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to select some specific columns from a table in a query in ms sql server?

505


Explain full-text indexing?

518


What are the joins in sql server? : sql server database administration

538


Do you think BCNF is better than 2NF & 3NF? Why?

797


Explain having clause and where clause?

586






What is an identity column in insert statements?

587


What are the disadvantages of merge replication?

782


How much does sql server 2016 cost?

538


When would you use an insert into .. Select option versus an insert into .. Values option? Give an example of each?

658


What is an index. What are the types?

587


What is difference between rownum and row_number?

522


What are the operating modes in which database mirroring runs?

611


What is the fillfactor concept in indexes?

535


Explain go command in sql server?

547


Explain hostprotectionattribute in sql server 2005?

601