Difference between writing SQL query and stored procedure ?

Answer Posted / robinson

The execution plan will be created when compiling the stored
procedure and permanently stored in the database and so it
is much efficient, But in the case of query the execution
plan will be created at runtime.

Is This Answer Correct ?    30 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between views and tables?

469


How to create a simple table to test triggers in ms sql server?

511


Which are the third-party tools used in sql server and why would you use them?

492


How to create sub reports?

194


Explain how many normalization forms?

580






Explain indexed views?

559


How can I get data from a database on another server?

513


How to resolve the orphan use problem? : sql server security

527


How to add additional conditions in SQL?

589


Is sql server implemented as a service or an application? : Sql server database administration

512


What are exact numeric data types in ms sql server?

513


What are the steps you can take to avoid “deadlocks”?

523


What is auditing in sql server?

505


Can a stored procedure call itself or recursive stored procedure? How many levels sp nesting is possible?

524


How to loop through result set objects using odbc_fetch_row()?

467