Difference between writing SQL query and stored procedure ?

Answer Posted / vial

stored proceure compiles only once and stores in database
managemant system so it is optimized for best performance
while sql query compiles every time and executes using dbms
driver so its performance decreses

Is This Answer Correct ?    77 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a data source or ds? : sql server analysis services, ssas

548


Explain the different types of joins?

554


Which joins are sql server default?

496


How many servers can we create in a single subscription?

143


Please explain the characteristics of a transaction server for example atomicity, consistency, isolation, durability?

490






Tell me what is the difference between locking and multi-versioning?

564


Is natural join and equi join same?

512


What is sparse columns of sql server 2008?

591


How will you monitor replication activity and performance? What privilege do you need to use replication monitor? : sql server replication

531


What is CTE in SQL

532


What are the restrictions applicable while creating views? : SQL Server Architecture

574


Tell me what is de-normalization and what are some of the examples of it?

557


Can you explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?

514


How you provide security to cube? : sql server analysis services, ssas

527


What is amo? : sql server analysis services, ssas

653