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

What is local temp table?

551


Explain how to integrate the ssrs reports in application?

518


How would you add a section to a table?

562


What is difference between equi join and inner join?

478


Can you get second highest salary from the table?

551






Explain activity monitors

617


How to find tables without indexes?

626


what are the steps you will take to improve performance of a poor performing query? : Sql server database administration

530


What is the tcp/ip port on which sql server runs?

561


What is an active database?

592


What is bcp? When does it used?

545


What is the difference between delete and truncate statements?

564


How can I change procedure name in sql server?

533


What triggers long term care?

552


What is right outer join in sql server joins?

686