Difference between writing SQL query and stored procedure ?

Answer Posted / swathi

Queries are compiled each and evey time when we execute.
where as Stored Procedures are compiled only once when we
execute for the first time and the execution plans are
cached in memory.

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

503


Tell me what are the essential components of sql server service broker?

496


How to concatenate two strings in SQL Server.

586


Define msdb database?

589


What is the difference between stored procedure and user defined functions?

613






What is create command?

516


What are the differences between left join and inner join in sql server?

574


you have separate development and production systems you want to move a copy of a development database into production to do this, you do a backup on the development system and restore to the production system after a few minutes, you begin getting calls from several customers saying that they are denied access to the system why? : Sql server administration

544


Explain nested stored procedure. Syntax and an example for create nested stored procedure?

521


How to get a list of all tables with "sys.tables" view in ms sql server?

540


How do you create an execution plan?

483


What is attribute? : sql server analysis services, ssas

577


What does REVERT do in SQL Server 2005?

545


What is left outer join in sql server joins?

544


What are different types of raid levels?

543