What is the diff between Dynamic queries and static queries

Answer Posted / jerry joseph

Static query will be executed as it is.

Dynamic query is built upon conditions depending upon the
parameters.

Static query will create an execution plan during compilation.

Dynamic query will create execution plan at run time.
Its very slow in execution since building the plan at run
time makes it too slow.

Is This Answer Correct ?    17 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain acid?

800


What happens to a statement batch if there is a compilation error?

698


what are triggers? : Sql server database administration

663


Explain what is lock escalation?

769


What are .mdf files?

691






What are parameterized reports?

176


Describe and explain about SQL native client?

789


What is sql server locking?

704


Comment,Datatypes are unlimited

1804


What is inner join in sql server joins?

708


When to use Inner join & when to use subquery?

752


How connect excel to sql server?

685


Differentiate between a primary key and a unique key.

791


What are the different acid properties?

809


What are the advantages of using stored procedures in sql server?

699