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

What is sql or structured query language?

683


Explain an incremental backup?

593


Do you know what is blocking?

543


What methods do you follow to protect from sql injection attack?

519


Difference between Inner vs outer joins?

535






What is the difference between nvl and nvl2?

551


Explain unique key in sql server?

540


Explain about Normalization?

571


What is dbcc? Give few examples.

579


How to create an inline table-valued function?

540


Are resultset updatable?

525


What are Row versions of DataRow?

606


What is left outer join in sql server joins?

551


hi, how to link a text file and a .rpt file in my tables of sql server and to retrieve those records for further use. reply me as soon as possible.

1559


Where does the copy job runs in the log shipping primary or secondary? : sql server database administration

596